ReactOS  0.4.14-dev-98-gb0d4763
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 }
const CHAR * LPCTSTR
Definition: xmlstorage.h:193
#define LoadLibrary
Definition: winbase.h:3686
HANDLE HWND
Definition: compat.h:13
smooth NULL
Definition: ftsmooth.c:416
void * PVOID
Definition: retypes.h:9
#define FreeLibrary(x)
Definition: compat.h:405
#define WINAPI
Definition: msvc.h:8
#define abort()
Definition: i386-dis.c:35
unsigned int UINT
Definition: ndis.h:50
#define GetProcAddress(x, y)
Definition: compat.h:410
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Definition: typeof.h:31

Referenced by _assert(), and abort().

Variable Documentation

◆ __app_type

int __app_type

Definition at line 30 of file environ.c.

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

◆ msvcrt_error_mode

int msvcrt_error_mode

Definition at line 115 of file errno.c.

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