ReactOS 0.4.16-dev-336-gb667d82
__crt_MessageBoxA.c File Reference
#include <precomp.h>
Include dependency graph for __crt_MessageBoxA.c:

Go to the source code of this file.

Functions

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

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:3887
#define WINAPI
Definition: msvc.h:6
const CHAR * LPCTSTR
Definition: xmlstorage.h:193

Referenced by _assert(), and abort().