ReactOS 0.4.16-dev-297-gc569aee
main.c File Reference
#include "precomp.h"
Include dependency graph for main.c:

Go to the source code of this file.

Functions

INT WINAPI wWinMain (HINSTANCE hInst, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow)
 

Variables

static const WCHAR szCharacterClipboardFormat [] = L"RosVgaFontChar"
 
HINSTANCE hInstance
 
HANDLE hProcessHeap
 
PWSTR szAppName
 
UINT uCharacterClipboardFormat
 

Function Documentation

◆ wWinMain()

INT WINAPI wWinMain ( HINSTANCE  hInstance,
HINSTANCE  hPrevInstance,
LPWSTR  lpCmdLine,
int  nShowCmd 
)

This file has no copyright assigned and is placed in the Public Domain. This file is part of the w64 mingw-runtime package. No warranty is given; refer to the file DISCLAIMER.PD within this package.

Definition at line 18 of file main.c.

19{
20 HACCEL hAccel;
21 INT nRet = 1;
22 MSG msg;
24
25 UNREFERENCED_PARAMETER(hPrevInstance);
26 UNREFERENCED_PARAMETER(lpCmdLine);
27
30
32
34
37 return 1;
38
40 {
41 if( CreateMainWindow(nCmdShow, &Info) )
42 {
43 while( GetMessageW(&msg, NULL, 0, 0) )
44 {
45 if( !TranslateMDISysAccel(Info->hMdiClient, &msg) &&
46 !TranslateAccelerator(Info->hMainWnd, hAccel, &msg) )
47 {
50 }
51 }
52
53 nRet = 0;
54 }
55 }
56
58
59 // Just unregister our window classes, don't care whether they were created or not
64
65 return nRet;
66}
#define msg(x)
Definition: auth_time.c:54
INT AllocAndLoadString(OUT LPTSTR *lpTarget, IN HINSTANCE hInst, IN UINT uID)
Definition: misc.c:59
#define IDS_APPTITLE
Definition: resource.h:3
HWND CreateMainWindow()
Definition: biditext.c:330
HINSTANCE hInstance
Definition: charmap.c:19
#define NULL
Definition: types.h:112
#define GetProcessHeap()
Definition: compat.h:736
#define HeapFree(x, y, z)
Definition: compat.h:735
HINSTANCE hInst
Definition: dxdiag.c:13
VOID UnInitEditGlyphWndClasses(VOID)
Definition: editglyphdlg.c:302
BOOL InitEditGlyphWndClasses(VOID)
Definition: editglyphdlg.c:283
VOID UnInitFontBoxesWndClass(VOID)
Definition: fontboxeswnd.c:345
BOOL InitFontBoxesWndClass(VOID)
Definition: fontboxeswnd.c:330
VOID UnInitFontWndClass(VOID)
Definition: fontwnd.c:441
BOOL InitFontWndClass(VOID)
Definition: fontwnd.c:426
PWSTR szAppName
Definition: main.c:14
static const WCHAR szCharacterClipboardFormat[]
Definition: main.c:10
UINT uCharacterClipboardFormat
Definition: main.c:15
HANDLE hProcessHeap
Definition: main.c:13
BOOL InitMainWndClass(VOID)
Definition: mainwnd.c:641
VOID UnInitMainWndClass(VOID)
Definition: mainwnd.c:656
#define IDA_MAINACCELERATORS
Definition: resource.h:18
HACCEL hAccel
Definition: main.c:47
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:325
TW_UINT32 TW_UINT16 TW_UINT16 MSG
Definition: twain.h:1829
int32_t INT
Definition: typedefs.h:58
_Must_inspect_result_ _In_ WDFCHILDLIST _In_ PWDF_CHILD_LIST_ITERATOR _Out_ WDFDEVICE _Inout_opt_ PWDF_CHILD_RETRIEVE_INFO Info
Definition: wdfchildlist.h:690
BOOL WINAPI TranslateMessage(_In_ const MSG *)
BOOL WINAPI GetMessageW(_Out_ LPMSG, _In_opt_ HWND, _In_ UINT, _In_ UINT)
UINT WINAPI RegisterClipboardFormatW(_In_ LPCWSTR)
BOOL WINAPI TranslateMDISysAccel(_In_ HWND, _In_ LPMSG)
HACCEL WINAPI LoadAcceleratorsW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
#define DispatchMessage
Definition: winuser.h:5777
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582
#define TranslateAccelerator
Definition: winuser.h:5872

Variable Documentation

◆ hInstance

HINSTANCE hInstance

Definition at line 12 of file main.c.

◆ hProcessHeap

HANDLE hProcessHeap

Definition at line 13 of file main.c.

Referenced by DllMain(), midl_user_allocate(), midl_user_free(), and wWinMain().

◆ szAppName

PWSTR szAppName

Definition at line 14 of file main.c.

Referenced by wWinMain().

◆ szCharacterClipboardFormat

const WCHAR szCharacterClipboardFormat[] = L"RosVgaFontChar"
static

Definition at line 10 of file main.c.

Referenced by wWinMain().

◆ uCharacterClipboardFormat

UINT uCharacterClipboardFormat