ReactOS 0.4.15-dev-7958-gcd0bb1a
utilman.c
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS Utility Manager (Accessibility)
3 * LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
4 * PURPOSE: Main dialog code file
5 * COPYRIGHT: Copyright 2019-2020 George Bișoc (george.bisoc@reactos.org)
6 */
7
8/* INCLUDES *******************************************************************/
9
10#include "precomp.h"
11
12/* FUNCTIONS ******************************************************************/
13
36 IN HINSTANCE hPrevInstance,
37 IN LPWSTR pCmdLine,
38 IN INT nCmdShow)
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
int32_t INT
Definition: typedefs.h:58
#define IN
Definition: typedefs.h:39
BOOL WINAPI UManStartDlg(VOID)
Definition: umandlg.c:383
INT WINAPI wWinMain(IN HINSTANCE hInstance, IN HINSTANCE hPrevInstance, IN LPWSTR pCmdLine, IN INT nCmdShow)
Definition: utilman.c:35
DWORD WINAPI GetLastError(void)
Definition: except.c:1042
#define WINAPI
Definition: msvc.h:6
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
WCHAR * LPWSTR
Definition: xmlstorage.h:184