ReactOS 0.4.15-dev-7942-gd23573b
utilman.c File Reference
#include "precomp.h"
Include dependency graph for utilman.c:

Go to the source code of this file.

Functions

INT WINAPI wWinMain (IN HINSTANCE hInstance, IN HINSTANCE hPrevInstance, IN LPWSTR pCmdLine, IN INT nCmdShow)
 

Function Documentation

◆ wWinMain()

INT WINAPI wWinMain ( IN HINSTANCE  hInstance,
IN HINSTANCE  hPrevInstance,
IN LPWSTR  pCmdLine,
IN INT  nCmdShow 
)

@wWinMain

Application entry point.

Parameters
[in]hInstanceApplication instance.
[in]hPrevInstanceThe previous instance of the application (not used).
[in]pCmdLinePointer to a command line argument (in wide string – not used).
[in]nCmdShowAn integer served as a flag to note how the application will be shown (not used).
Returns
Returns 0 to let the function terminating before it enters in the message loop.

Definition at line 35 of file utilman.c.

39{
41 WCHAR szFormat[MAX_BUFFER];
42 WCHAR szFailLoad[MAX_BUFFER];
45
46 UNREFERENCED_PARAMETER(hPrevInstance);
47 UNREFERENCED_PARAMETER(pCmdLine);
48 UNREFERENCED_PARAMETER(nCmdShow);
49
50 /* Load the main resources module of Utility Manager */
51 hModule = LoadLibraryW(L"UManDlg.dll");
52 if (!hModule)
53 {
54 LoadStringW(hInstance, IDS_FAIL_INIT, szFormat, _countof(szFormat));
56
57 StringCchPrintfW(szFailLoad, _countof(szFailLoad), szFormat, GetLastError());
59 return -1;
60 }
61
62 /* Get the function address and launch Utility Manager */
65
67 return 0;
68}
#define MAX_BUFFER
Definition: precomp.h:20
BOOL(WINAPI * EXECDLGROUTINE)(VOID)
Definition: precomp.h:24
#define IDS_FAIL_INIT
Definition: resource.h:16
#define IDS_FAIL_INIT_TITLE
Definition: resource.h:17
HINSTANCE hInstance
Definition: charmap.c:19
HMODULE hModule
Definition: animate.c:44
#define GetProcAddress(x, y)
Definition: compat.h:753
#define FreeLibrary(x)
Definition: compat.h:748
#define LoadLibraryW(x)
Definition: compat.h:747
TCHAR szTitle[MAX_LOADSTRING]
Definition: magnifier.c:35
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:317
#define L(x)
Definition: ntvdm.h:50
#define _countof(array)
Definition: sndvol32.h:68
STRSAFEAPI StringCchPrintfW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszFormat,...)
Definition: strsafe.h:530
BOOL WINAPI UManStartDlg(VOID)
Definition: umandlg.c:383
DWORD WINAPI GetLastError(void)
Definition: except.c:1042
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
int WINAPI MessageBoxW(_In_opt_ HWND hWnd, _In_opt_ LPCWSTR lpText, _In_opt_ LPCWSTR lpCaption, _In_ UINT uType)
HWND WINAPI GetDesktopWindow(void)
Definition: window.c:656
#define MB_ICONERROR
Definition: winuser.h:787
#define MB_OK
Definition: winuser.h:790
__wchar_t WCHAR
Definition: xmlstorage.h:180