2 * PROJECT: ReactOS C runtime library
3 * LICENSE: BSD - See COPYING.ARM in the top level directory
4 * FILE: lib/sdk/crt/__crt_MessageBoxA.c
5 * PURPOSE: __crt_MessageBoxA implementation
6 * PROGRAMMER: Timo Kreuzer (timo.kreuzer@reactos.org)
11 /*****************************************************************************
12 * \brief Displays a message box.
14 * \param pszText - The message to be displayed.
15 * \param uType - The contents and behavior of the message box.
16 * \return Identifies the button that was pressed by the user.
19 *****************************************************************************/
23 _In_opt_
const char *pszText
,
24 _In_
unsigned int uType
)
27 int (WINAPI
*pMessageBoxA
)(HWND
, LPCTSTR
, LPCTSTR
, UINT
);
30 /* Get MessageBoxA function pointer */
31 hmodUser32
= LoadLibrary("user32.dll");
32 pMessageBoxA
= (PVOID
)GetProcAddress(hmodUser32
, "MessageBoxA");
38 /* Display a message box */
39 iResult
= pMessageBoxA(NULL
,
41 "ReactOS C Runtime Library",
44 FreeLibrary(hmodUser32
);