Go to the source code of this file.
◆ OSINFO_KEY
#define OSINFO_KEY L"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion" |
◆ Winver_FormatCompatInfo()
Definition at line 65 of file osinfo.c.
69{
70 WCHAR szNtVersion[16];
74
75
78 if (!szNtVersion[0] || !szNtBuild[0])
79 {
80
82 return;
83 }
84
85
87
90 szFormat,
92
94}
#define IDS_OSINFO_COMPAT_FORMAT
static VOID Winver_GetRegValueString(_In_ HKEY hKey, _In_ LPCWSTR pValue, _Out_ LPWSTR pBuffer, _In_ DWORD cchSize)
static VOID Winver_GetFormattedSpkInfo(_In_ HKEY hKey, _Out_ LPWSTR pBuffer, _In_ DWORD cchSize)
STRSAFEAPI StringCchPrintfW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszFormat,...)
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
HINSTANCE Winver_hInstance
Referenced by Winver_GetOSInfo().
◆ Winver_GetFormattedSpkInfo()
Definition at line 39 of file osinfo.c.
43{
46
48 if (!szRegValue[0])
49 {
50
52 return;
53 }
54
57 szFormat,
59
61}
#define IDS_OSINFO_SPK_FORMAT
Referenced by Winver_FormatCompatInfo().
◆ Winver_GetOSInfo()
Definition at line 97 of file osinfo.c.
99{
102
105 0,
110
111
113 if (!OSInfo->szName[0])
114 {
115
118 }
119
120
122
124
126}
#define RegCloseKey(hKey)
static LSTATUS(WINAPI *pRegDeleteTreeW)(HKEY
LONG WINAPI RegOpenKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
static VOID Winver_FormatCompatInfo(_In_ HKEY hKey, _Out_ LPWSTR pBuffer, _In_ DWORD cchSize)
#define HKEY_LOCAL_MACHINE
Referenced by wWinMain().
◆ Winver_GetRegValueString()