ReactOS 0.4.16-dev-1078-g21d3e29
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
10
11int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow)
12{
14 WINVER_OS_INFO OSInfo;
15
16 UNREFERENCED_PARAMETER(hPrevInstance);
17 UNREFERENCED_PARAMETER(lpCmdLine);
18 UNREFERENCED_PARAMETER(nCmdShow);
19
21
22 /* Initialize common controls */
23 iccx.dwSize = sizeof(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
Definition: charmap.c:19
BOOL WINAPI InitCommonControlsEx(const INITCOMMONCONTROLSEX *lpInitCtrls)
Definition: commctrl.c:900
#define NULL
Definition: types.h:112
#define UNICODE_NULL
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:325
#define L(x)
Definition: ntvdm.h:50
BOOL Winver_GetOSInfo(_Out_ PWINVER_OS_INFO OSInfo)
Definition: osinfo.c:97
#define ICC_STANDARD_CLASSES
Definition: commctrl.h:73
#define ICC_WIN95_CLASSES
Definition: commctrl.h:66
BOOL WINAPI ShellAboutW(HWND hWnd, LPCWSTR szApp, LPCWSTR szOtherStuff, HICON hIcon)
#define _countof(array)
Definition: sndvol32.h:70
STRSAFEAPI StringCchCopyW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszSrc)
Definition: strsafe.h:149
WCHAR szCompatInfo[256]
Definition: winver_p.h:27
WCHAR szName[64]
Definition: winver_p.h:26
#define WINAPI
Definition: msvc.h:6
int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow)
Definition: winver.c:11
HINSTANCE Winver_hInstance
Definition: winver.c:9
WCHAR * LPWSTR
Definition: xmlstorage.h:184