ReactOS 0.4.16-dev-2279-gc890759
versionansi.c
Go to the documentation of this file.
1/*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS system libraries
4 * FILE: dll/win32/kernel32/client/versionansi.c
5 * PURPOSE: Version checking (ANSI)
6 */
7
8/* INCLUDES *****************************************************************/
9
10#include <k32.h>
11
12/* FUNCTIONS ****************************************************************/
13
14/*
15 * @implemented
16 */
17BOOL
20 IN DWORD dwTypeMask,
21 IN DWORDLONG dwlConditionMask)
22{
24
25 /* NOTE: szCSDVersion is ignored, we don't need to convert it to Unicode */
26 viex.dwOSVersionInfoSize = sizeof(viex);
27 viex.dwMajorVersion = lpVersionInformation->dwMajorVersion;
28 viex.dwMinorVersion = lpVersionInformation->dwMinorVersion;
29 viex.dwBuildNumber = lpVersionInformation->dwBuildNumber;
30 viex.dwPlatformId = lpVersionInformation->dwPlatformId;
31 viex.wServicePackMajor = lpVersionInformation->wServicePackMajor;
32 viex.wServicePackMinor = lpVersionInformation->wServicePackMinor;
33 viex.wSuiteMask = lpVersionInformation->wSuiteMask;
34 viex.wProductType = lpVersionInformation->wProductType;
35 viex.wReserved = lpVersionInformation->wReserved;
36 return VerifyVersionInfoW(&viex, dwTypeMask, dwlConditionMask);
37}
38
39/* EOF */
BOOL WINAPI VerifyVersionInfoW(IN LPOSVERSIONINFOEXW lpVersionInformation, IN DWORD dwTypeMask, IN DWORDLONG dwlConditionMask)
Definition: version.c:118
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
unsigned long long DWORDLONG
Definition: intsafe.h:93
ULONG dwMajorVersion
Definition: rtltypes.h:270
ULONG dwMinorVersion
Definition: rtltypes.h:271
ULONG dwOSVersionInfoSize
Definition: rtltypes.h:269
USHORT wServicePackMinor
Definition: rtltypes.h:276
ULONG dwPlatformId
Definition: rtltypes.h:273
UCHAR wProductType
Definition: rtltypes.h:278
USHORT wSuiteMask
Definition: rtltypes.h:277
ULONG dwBuildNumber
Definition: rtltypes.h:272
USHORT wServicePackMajor
Definition: rtltypes.h:275
#define IN
Definition: typedefs.h:39
BOOL WINAPI VerifyVersionInfoA(IN LPOSVERSIONINFOEXA lpVersionInformation, IN DWORD dwTypeMask, IN DWORDLONG dwlConditionMask)
Definition: versionansi.c:19
#define WINAPI
Definition: msvc.h:6
_In_ DWORD _In_ int _In_ int _In_opt_ LPNLSVERSIONINFO lpVersionInformation
Definition: winnls.h:1267