ReactOS
0.4.16-dev-297-gc569aee
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
_
c
d
e
f
g
h
i
l
n
o
p
s
t
u
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
_
c
d
f
i
l
m
o
p
s
t
w
x
Enumerator
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
w
x
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Examples
main.c
Go to the documentation of this file.
1
/*
2
* PROJECT: ReactOS VGA Font Editor
3
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
4
* PURPOSE: Main entry point of the application
5
* COPYRIGHT: Copyright 2008 Colin Finck (colin@reactos.org)
6
*/
7
8
#include "
precomp.h
"
9
10
static
const
WCHAR
szCharacterClipboardFormat
[] =
L
"RosVgaFontChar"
;
11
12
HINSTANCE
hInstance
;
13
HANDLE
hProcessHeap
;
14
PWSTR
szAppName
;
15
UINT
uCharacterClipboardFormat
;
16
17
INT
WINAPI
18
wWinMain
(
HINSTANCE
hInst
,
HINSTANCE
hPrevInstance,
LPWSTR
lpCmdLine,
int
nCmdShow)
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
;
29
hProcessHeap
=
GetProcessHeap
();
30
31
AllocAndLoadString
(&
szAppName
,
IDS_APPTITLE
);
32
33
hAccel
=
LoadAcceleratorsW
(
hInstance
,
MAKEINTRESOURCEW
(
IDA_MAINACCELERATORS
) );
34
35
uCharacterClipboardFormat
=
RegisterClipboardFormatW
(
szCharacterClipboardFormat
);
36
if
(!
uCharacterClipboardFormat
)
37
return
1;
38
39
if
(
InitMainWndClass
() &&
InitFontWndClass
() &&
InitFontBoxesWndClass
() &&
InitEditGlyphWndClasses
() )
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
{
48
TranslateMessage
(&
msg
);
49
DispatchMessage
(&
msg
);
50
}
51
}
52
53
nRet = 0;
54
}
55
}
56
57
HeapFree
(
hProcessHeap
, 0,
szAppName
);
58
59
// Just unregister our window classes, don't care whether they were created or not
60
UnInitEditGlyphWndClasses
();
61
UnInitFontBoxesWndClass
();
62
UnInitFontWndClass
();
63
UnInitMainWndClass
();
64
65
return
nRet;
66
}
msg
#define msg(x)
Definition:
auth_time.c:54
wWinMain
int WINAPI wWinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPWSTR cmdline, int cmdshow)
Definition:
main.c:788
AllocAndLoadString
INT AllocAndLoadString(OUT LPTSTR *lpTarget, IN HINSTANCE hInst, IN UINT uID)
Definition:
misc.c:59
IDS_APPTITLE
#define IDS_APPTITLE
Definition:
resource.h:3
CreateMainWindow
HWND CreateMainWindow()
Definition:
biditext.c:330
hInstance
HINSTANCE hInstance
Definition:
charmap.c:19
NULL
#define NULL
Definition:
types.h:112
GetProcessHeap
#define GetProcessHeap()
Definition:
compat.h:736
HeapFree
#define HeapFree(x, y, z)
Definition:
compat.h:735
hInst
HINSTANCE hInst
Definition:
dxdiag.c:13
UnInitEditGlyphWndClasses
VOID UnInitEditGlyphWndClasses(VOID)
Definition:
editglyphdlg.c:302
InitEditGlyphWndClasses
BOOL InitEditGlyphWndClasses(VOID)
Definition:
editglyphdlg.c:283
UnInitFontBoxesWndClass
VOID UnInitFontBoxesWndClass(VOID)
Definition:
fontboxeswnd.c:345
InitFontBoxesWndClass
BOOL InitFontBoxesWndClass(VOID)
Definition:
fontboxeswnd.c:330
UnInitFontWndClass
VOID UnInitFontWndClass(VOID)
Definition:
fontwnd.c:441
InitFontWndClass
BOOL InitFontWndClass(VOID)
Definition:
fontwnd.c:426
void
Definition:
nsiface.idl:2307
szAppName
PWSTR szAppName
Definition:
main.c:14
szCharacterClipboardFormat
static const WCHAR szCharacterClipboardFormat[]
Definition:
main.c:10
uCharacterClipboardFormat
UINT uCharacterClipboardFormat
Definition:
main.c:15
hProcessHeap
HANDLE hProcessHeap
Definition:
main.c:13
InitMainWndClass
BOOL InitMainWndClass(VOID)
Definition:
mainwnd.c:641
UnInitMainWndClass
VOID UnInitMainWndClass(VOID)
Definition:
mainwnd.c:656
IDA_MAINACCELERATORS
#define IDA_MAINACCELERATORS
Definition:
resource.h:18
hAccel
HACCEL hAccel
Definition:
main.c:47
UINT
unsigned int UINT
Definition:
ndis.h:50
UNREFERENCED_PARAMETER
#define UNREFERENCED_PARAMETER(P)
Definition:
ntbasedef.h:325
L
#define L(x)
Definition:
ntvdm.h:50
_MAIN_WND_INFO
Definition:
precomp.h:50
MSG
TW_UINT32 TW_UINT16 TW_UINT16 MSG
Definition:
twain.h:1829
PWSTR
uint16_t * PWSTR
Definition:
typedefs.h:56
INT
int32_t INT
Definition:
typedefs.h:58
Info
_Must_inspect_result_ _In_ WDFCHILDLIST _In_ PWDF_CHILD_LIST_ITERATOR _Out_ WDFDEVICE _Inout_opt_ PWDF_CHILD_RETRIEVE_INFO Info
Definition:
wdfchildlist.h:690
precomp.h
WINAPI
#define WINAPI
Definition:
msvc.h:6
TranslateMessage
BOOL WINAPI TranslateMessage(_In_ const MSG *)
GetMessageW
BOOL WINAPI GetMessageW(_Out_ LPMSG, _In_opt_ HWND, _In_ UINT, _In_ UINT)
RegisterClipboardFormatW
UINT WINAPI RegisterClipboardFormatW(_In_ LPCWSTR)
TranslateMDISysAccel
BOOL WINAPI TranslateMDISysAccel(_In_ HWND, _In_ LPMSG)
LoadAcceleratorsW
HACCEL WINAPI LoadAcceleratorsW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
DispatchMessage
#define DispatchMessage
Definition:
winuser.h:5777
MAKEINTRESOURCEW
#define MAKEINTRESOURCEW(i)
Definition:
winuser.h:582
TranslateAccelerator
#define TranslateAccelerator
Definition:
winuser.h:5872
WCHAR
__wchar_t WCHAR
Definition:
xmlstorage.h:180
LPWSTR
WCHAR * LPWSTR
Definition:
xmlstorage.h:184
modules
rosapps
applications
devutils
vgafontedit
main.c
Generated on Tue Nov 26 2024 06:15:21 for ReactOS by
1.9.6