ReactOS
0.4.16-dev-1078-g21d3e29
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
m
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
_
a
b
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
winver.c
Go to the documentation of this file.
1
/*
2
* COPYRIGHT: See COPYING in the top level directory
3
* PROJECT: ReactOS Version Program
4
* FILE: base/applications/winver/winver.c
5
*/
6
7
#include "
winver_p.h
"
8
9
HINSTANCE
Winver_hInstance
;
10
11
int
WINAPI
wWinMain
(
HINSTANCE
hInstance
,
HINSTANCE
hPrevInstance,
LPWSTR
lpCmdLine,
int
nCmdShow)
12
{
13
INITCOMMONCONTROLSEX
iccx;
14
WINVER_OS_INFO
OSInfo;
15
16
UNREFERENCED_PARAMETER
(hPrevInstance);
17
UNREFERENCED_PARAMETER
(lpCmdLine);
18
UNREFERENCED_PARAMETER
(nCmdShow);
19
20
Winver_hInstance
=
hInstance
;
21
22
/* Initialize common controls */
23
iccx.
dwSize
=
sizeof
(iccx);
24
iccx.
dwICC
=
ICC_STANDARD_CLASSES
|
ICC_WIN95_CLASSES
;
25
InitCommonControlsEx
(&iccx);
26
27
if
(!
Winver_GetOSInfo
(&OSInfo))
28
{
29
/* OS info is not available, display the default contents */
30
StringCchCopyW
(OSInfo.
szName
,
_countof
(OSInfo.
szName
),
L
"ReactOS"
);
31
OSInfo.
szCompatInfo
[0] =
UNICODE_NULL
;
32
}
33
34
return
ShellAboutW
(
NULL
, OSInfo.
szName
, OSInfo.
szCompatInfo
,
NULL
);
35
}
hInstance
HINSTANCE hInstance
Definition:
charmap.c:19
InitCommonControlsEx
BOOL WINAPI InitCommonControlsEx(const INITCOMMONCONTROLSEX *lpInitCtrls)
Definition:
commctrl.c:900
NULL
#define NULL
Definition:
types.h:112
void
Definition:
nsiface.idl:2307
UNICODE_NULL
#define UNICODE_NULL
UNREFERENCED_PARAMETER
#define UNREFERENCED_PARAMETER(P)
Definition:
ntbasedef.h:325
L
#define L(x)
Definition:
ntvdm.h:50
Winver_GetOSInfo
BOOL Winver_GetOSInfo(_Out_ PWINVER_OS_INFO OSInfo)
Definition:
osinfo.c:97
ICC_STANDARD_CLASSES
#define ICC_STANDARD_CLASSES
Definition:
commctrl.h:73
ICC_WIN95_CLASSES
#define ICC_WIN95_CLASSES
Definition:
commctrl.h:66
ShellAboutW
BOOL WINAPI ShellAboutW(HWND hWnd, LPCWSTR szApp, LPCWSTR szOtherStuff, HICON hIcon)
Definition:
shell32_main.c:1314
_countof
#define _countof(array)
Definition:
sndvol32.h:70
StringCchCopyW
STRSAFEAPI StringCchCopyW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszSrc)
Definition:
strsafe.h:149
_WINVER_OS_INFO
Definition:
winver_p.h:25
_WINVER_OS_INFO::szCompatInfo
WCHAR szCompatInfo[256]
Definition:
winver_p.h:27
_WINVER_OS_INFO::szName
WCHAR szName[64]
Definition:
winver_p.h:26
tagINITCOMMONCONTROLSEX
Definition:
commctrl.h:54
tagINITCOMMONCONTROLSEX::dwICC
DWORD dwICC
Definition:
commctrl.h:56
tagINITCOMMONCONTROLSEX::dwSize
DWORD dwSize
Definition:
commctrl.h:55
WINAPI
#define WINAPI
Definition:
msvc.h:6
wWinMain
int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow)
Definition:
winver.c:11
Winver_hInstance
HINSTANCE Winver_hInstance
Definition:
winver.c:9
winver_p.h
LPWSTR
WCHAR * LPWSTR
Definition:
xmlstorage.h:184
base
applications
winver
winver.c
Generated on Sun May 4 2025 06:02:25 for ReactOS by
1.9.6