ReactOS 0.4.16-dev-927-g467dec4
winver.c File Reference
#include "winver_p.h"
Include dependency graph for winver.c:

Go to the source code of this file.

Functions

int WINAPI wWinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow)
 

Variables

HINSTANCE Winver_hInstance
 

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 11 of file winver.c.

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
HINSTANCE Winver_hInstance
Definition: winver.c:9

Variable Documentation

◆ Winver_hInstance

HINSTANCE Winver_hInstance

Definition at line 9 of file winver.c.

Referenced by Winver_FormatCompatInfo(), Winver_GetFormattedSpkInfo(), and wWinMain().