ReactOS  0.4.13-dev-656-g74bcf30
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;
23  PMAIN_WND_INFO Info = 0;
24 
25  UNREFERENCED_PARAMETER(hPrevInstance);
26  UNREFERENCED_PARAMETER(lpCmdLine);
27 
28  hInstance = hInst;
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 TranslateAccelerator
Definition: winuser.h:5758
#define DispatchMessage
Definition: winuser.h:5663
BOOL WINAPI TranslateMessage(_In_ const MSG *)
VOID UnInitFontWndClass(VOID)
Definition: fontwnd.c:436
#define IDS_APPTITLE
Definition: resource.h:3
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:323
UINT WINAPI RegisterClipboardFormatW(_In_ LPCWSTR)
BOOL InitMainWndClass(VOID)
Definition: mainwnd.c:641
TW_UINT32 TW_UINT16 TW_UINT16 MSG
Definition: twain.h:1827
VOID UnInitMainWndClass(VOID)
Definition: mainwnd.c:656
static INT AllocAndLoadString(OUT LPTSTR *lpTarget, IN HINSTANCE hInst, IN UINT uID)
Definition: misc.c:60
VOID UnInitEditGlyphWndClasses(VOID)
Definition: editglyphdlg.c:302
static const WCHAR szCharacterClipboardFormat[]
Definition: main.c:10
int32_t INT
Definition: typedefs.h:56
struct TraceInfo Info
HINSTANCE hInst
Definition: main.c:29
HACCEL hAccel
Definition: main.c:47
HACCEL WINAPI LoadAcceleratorsW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
smooth NULL
Definition: ftsmooth.c:416
#define GetProcessHeap()
Definition: compat.h:395
HINSTANCE hInstance
Definition: main.c:36
PWSTR szAppName
Definition: main.c:14
HANDLE hProcessHeap
Definition: main.c:13
BOOL InitFontBoxesWndClass(VOID)
Definition: fontboxeswnd.c:337
#define IDA_MAINACCELERATORS
Definition: resource.h:18
BOOL WINAPI GetMessageW(_Out_ LPMSG, _In_opt_ HWND, _In_ UINT, _In_ UINT)
#define msg(x)
Definition: auth_time.c:54
VOID UnInitFontBoxesWndClass(VOID)
Definition: fontboxeswnd.c:352
BOOL InitFontWndClass(VOID)
Definition: fontwnd.c:421
BOOL InitEditGlyphWndClasses(VOID)
Definition: editglyphdlg.c:283
UINT uCharacterClipboardFormat
Definition: main.c:15
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582
#define HeapFree(x, y, z)
Definition: compat.h:394
BOOL WINAPI TranslateMDISysAccel(_In_ HWND, _In_ LPMSG)
HWND CreateMainWindow(LPCTSTR lpCaption, int nCmdShow)
Definition: mainwnd.c:920

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