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;
99 lpVersionInformationEx->
wSuiteMask = VersionInformation.wSuiteMask;
100 lpVersionInformationEx->
wProductType = VersionInformation.wProductType;
101 lpVersionInformationEx->
wReserved = VersionInformation.wReserved;
105 RtlInitEmptyAnsiString(&CsdVersionA,
106 lpVersionInformation->szCSDVersion,
107 sizeof(lpVersionInformation->szCSDVersion));
134 if (lpVersionInformation)
136 DPRINT1(
"VerifyVersionInfo -- Version mismatch(%d.%d.%d:%d)\n",
144 DPRINT1(
"VerifyVersionInfo -- Version mismatch(NULL)\n");
175 viex.
wSuiteMask = lpVersionInformation->wSuiteMask;
177 viex.
wReserved = lpVersionInformation->wReserved;
#define STATUS_REVISION_MISMATCH
ULONG dwOSVersionInfoSize
NTSTATUS NTAPI RtlGetVersion(IN OUT PRTL_OSVERSIONINFOW lpVersionInformation)
#define STATUS_INVALID_PARAMETER
#define ERROR_BAD_ARGUMENTS
BOOL WINAPI GetVersionExW(IN LPOSVERSIONINFOW lpVersionInformation)
BOOL WINAPI VerifyVersionInfoA(IN LPOSVERSIONINFOEXA lpVersionInformation, IN DWORD dwTypeMask, IN DWORDLONG dwlConditionMask)
DWORD WINAPI GetVersion(VOID)
NTSYSAPI NTSTATUS NTAPI RtlUnicodeStringToAnsiString(PANSI_STRING DestinationString, PUNICODE_STRING SourceString, BOOLEAN AllocateDestinationString)
BOOL WINAPI GetVersionExA(IN LPOSVERSIONINFOA lpVersionInformation)
BOOL WINAPI VerifyVersionInfoW(IN LPOSVERSIONINFOEXW lpVersionInformation, IN DWORD dwTypeMask, IN DWORDLONG dwlConditionMask)
#define NT_SUCCESS(StatCode)
ULONG dwOSVersionInfoSize
struct _OSVERSIONINFOEXW OSVERSIONINFOEXW
#define ERROR_OLD_WIN_VERSION
unsigned long long DWORDLONG
NTSYSAPI VOID NTAPI RtlInitUnicodeString(PUNICODE_STRING DestinationString, PCWSTR SourceString)
NTSTATUS NTAPI RtlVerifyVersionInfo(IN PRTL_OSVERSIONINFOEXW VersionInfo, IN ULONG TypeMask, IN ULONGLONG ConditionMask)
#define ERROR_INSUFFICIENT_BUFFER