_set_app_type
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at _set_app_type.
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 |
Show: