ReactOS 0.4.15-dev-7907-g95bf896
misc.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define _UNKNOWN_APP   0
 
#define _CONSOLE_APP   1
 
#define _GUI_APP   2
 

Functions

int __cdecl __crt_MessageBoxA (_In_opt_ const char *pszText, _In_ unsigned int uType)
 

Variables

int msvcrt_error_mode
 
int __app_type
 

Macro Definition Documentation

◆ _CONSOLE_APP

#define _CONSOLE_APP   1

Definition at line 6 of file misc.h.

◆ _GUI_APP

#define _GUI_APP   2

Definition at line 7 of file misc.h.

◆ _UNKNOWN_APP

#define _UNKNOWN_APP   0

Definition at line 5 of file misc.h.

Function Documentation

◆ __crt_MessageBoxA()

int __cdecl __crt_MessageBoxA ( _In_opt_ const char pszText,
_In_ unsigned int  uType 
)

Definition at line 22 of file __crt_MessageBoxA.c.

25{
26 HMODULE hmodUser32;
27 int (WINAPI *pMessageBoxA)(HWND, LPCTSTR, LPCTSTR, UINT);
28 int iResult;
29
30 /* Get MessageBoxA function pointer */
31 hmodUser32 = LoadLibrary("user32.dll");
32 pMessageBoxA = (PVOID)GetProcAddress(hmodUser32, "MessageBoxA");
33 if (!pMessageBoxA)
34 {
35 abort();
36 }
37
38 /* Display a message box */
39 iResult = pMessageBoxA(NULL,
40 pszText,
41 "ReactOS C Runtime Library",
42 uType);
43
44 FreeLibrary(hmodUser32);
45 return iResult;
46}
#define NULL
Definition: types.h:112
HANDLE HWND
Definition: compat.h:19
#define GetProcAddress(x, y)
Definition: compat.h:753
#define FreeLibrary(x)
Definition: compat.h:748
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Definition: typeof.h:31
#define abort()
Definition: i386-dis.c:34
unsigned int UINT
Definition: ndis.h:50
void * PVOID
Definition: typedefs.h:50
#define LoadLibrary
Definition: winbase.h:3862
#define WINAPI
Definition: msvc.h:6
const CHAR * LPCTSTR
Definition: xmlstorage.h:193

Referenced by _assert(), and abort().

Variable Documentation

◆ __app_type

int __app_type
extern

Definition at line 30 of file environ.c.

Referenced by __set_app_type(), _assert(), and abort().

◆ msvcrt_error_mode

int msvcrt_error_mode
extern

Definition at line 115 of file errno.c.

Referenced by _assert(), _set_error_mode(), and abort().