42 if ((lpVersionInformation->dwOSVersionInfoSize !=
sizeof(
OSVERSIONINFOW)) &&
54 lpVersionInformationEx = (
PVOID)lpVersionInformation;
77 if ((lpVersionInformation->dwOSVersionInfoSize !=
sizeof(
OSVERSIONINFOA)) &&
89 lpVersionInformation->dwMajorVersion = VersionInformation.
dwMajorVersion;
90 lpVersionInformation->dwMinorVersion = VersionInformation.
dwMinorVersion;
91 lpVersionInformation->dwBuildNumber = VersionInformation.
dwBuildNumber;
92 lpVersionInformation->dwPlatformId = VersionInformation.
dwPlatformId;
96 lpVersionInformationEx = (
PVOID)lpVersionInformation;
105 RtlInitEmptyAnsiString(&CsdVersionA,
106 lpVersionInformation->szCSDVersion,
107 sizeof(lpVersionInformation->szCSDVersion));
134 if (lpVersionInformation)
136 DPRINT1(
"VerifyVersionInfo -- Version mismatch(%d.%d.%d:%d)\n",
137 (dwTypeMask &
VER_MAJORVERSION) ? lpVersionInformation->dwMajorVersion : -1,
138 (dwTypeMask &
VER_MINORVERSION) ? lpVersionInformation->dwMinorVersion : -1,
139 (dwTypeMask &
VER_BUILDNUMBER) ? lpVersionInformation->dwBuildNumber : -1,
140 (dwTypeMask &
VER_PLATFORMID) ? lpVersionInformation->dwPlatformId : -1);
144 DPRINT1(
"VerifyVersionInfo -- Version mismatch(NULL)\n");
175 viex.
wSuiteMask = lpVersionInformation->wSuiteMask;
177 viex.
wReserved = lpVersionInformation->wReserved;
#define ERROR_INSUFFICIENT_BUFFER
#define NT_SUCCESS(StatCode)
NTSTATUS NTAPI RtlGetVersion(IN OUT PRTL_OSVERSIONINFOW lpVersionInformation)
BOOL WINAPI GetVersionExW(IN LPOSVERSIONINFOW lpVersionInformation)
BOOL WINAPI VerifyVersionInfoA(IN LPOSVERSIONINFOEXA lpVersionInformation, IN DWORD dwTypeMask, IN DWORDLONG dwlConditionMask)
BOOL WINAPI GetVersionExA(IN LPOSVERSIONINFOA lpVersionInformation)
BOOL WINAPI VerifyVersionInfoW(IN LPOSVERSIONINFOEXW lpVersionInformation, IN DWORD dwTypeMask, IN DWORDLONG dwlConditionMask)
NTSYSAPI NTSTATUS WINAPI RtlVerifyVersionInfo(const RTL_OSVERSIONINFOEXW *, DWORD, DWORDLONG)
unsigned long long DWORDLONG
NTSYSAPI NTSTATUS NTAPI RtlUnicodeStringToAnsiString(PANSI_STRING DestinationString, PUNICODE_STRING SourceString, BOOLEAN AllocateDestinationString)
NTSYSAPI VOID NTAPI RtlInitUnicodeString(PUNICODE_STRING DestinationString, PCWSTR SourceString)
#define STATUS_REVISION_MISMATCH
DWORD WINAPI GetVersion()
ULONG dwOSVersionInfoSize
#define STATUS_INVALID_PARAMETER
#define ERROR_OLD_WIN_VERSION
#define ERROR_BAD_ARGUMENTS
struct _OSVERSIONINFOEXW OSVERSIONINFOEXW