Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys.

This commit is contained in:
Colin Finck 2017-10-03 07:45:34 +00:00
parent b94e2d8ca0
commit c2c66aff7d
24198 changed files with 0 additions and 37285 deletions

View file

@ -0,0 +1,47 @@
/*
* PROJECT: ReactOS C runtime library
* LICENSE: BSD - See COPYING.ARM in the top level directory
* FILE: lib/sdk/crt/misc/__crt_MessageBoxA.c
* PURPOSE: __crt_MessageBoxA implementation
* PROGRAMMER: Timo Kreuzer (timo.kreuzer@reactos.org)
*/
#include <precomp.h>
/*****************************************************************************
* \brief Displays a message box.
*
* \param pszText - The message to be displayed.
* \param uType - The contents and behavior of the message box.
* \return Identifies the button that was pressed by the user.
* \see MessageBox
*
*****************************************************************************/
int
__cdecl
__crt_MessageBoxA (
_In_opt_ const char *pszText,
_In_ unsigned int uType)
{
HMODULE hmodUser32;
int (WINAPI *pMessageBoxA)(HWND, LPCTSTR, LPCTSTR, UINT);
int iResult;
/* Get MessageBoxA function pointer */
hmodUser32 = LoadLibrary("user32.dll");
pMessageBoxA = (PVOID)GetProcAddress(hmodUser32, "MessageBoxA");
if (!pMessageBoxA)
{
abort();
}
/* Display a message box */
iResult = pMessageBoxA(NULL,
pszText,
"ReactOS C Runtime Library",
uType);
FreeLibrary(hmodUser32);
return iResult;
}