title | ms.custom | ms.date | ms.reviewer | ms.suite | ms.tgt_pltfrm | ms.topic | apiname | apilocation | apitype | f1_keywords | dev_langs | ms.assetid | caps.latest.revision | author | ms.author | manager | |||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
_set_app_type | Microsoft Docs |
11/04/2016 |
article |
|
|
DLLExport |
|
|
1e7fe786-b587-4116-8c05-f7d762350100 |
3 |
corob-msft |
corob |
ghogen |
An internal function used at startup to tell the CRT whether the app is a console app or a GUI app.
typedef enum _crt_app_type
{
_crt_unknown_app,
_crt_console_app,
_crt_gui_app
} _crt_app_type;
void __cdecl _set_app_type(
_crt_app_type appType
);
appType
A value that indicates the application type. The possible values are:
Value | Description |
---|---|
_crt_unknown_app | Unknown application type. |
_crt_console_app | Console (command-line) application. |
_crt_gui_app | GUI (Windows) application. |
Normally, you do not need to call this function. It is part of the C runtime startup code that executes before main
is called in your app.
Routine | Required header |
---|---|
_set_app_type | process.h |