mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-28 19:26:16 +00:00
* [KERNEL32] Split off some ANSI functions from the bulk of Kernel32 Co-authored-by: Hermès BÉLUSCA - MAÏTO <[email protected]>
40 lines
1.3 KiB
C
40 lines
1.3 KiB
C
/*
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
* PROJECT: ReactOS system libraries
|
|
* FILE: dll/win32/kernel32/client/versionansi.c
|
|
* PURPOSE: Version checking (ANSI)
|
|
*/
|
|
|
|
/* INCLUDES *****************************************************************/
|
|
|
|
#include <k32.h>
|
|
|
|
/* FUNCTIONS ****************************************************************/
|
|
|
|
/*
|
|
* @implemented
|
|
*/
|
|
BOOL
|
|
WINAPI
|
|
VerifyVersionInfoA(IN LPOSVERSIONINFOEXA lpVersionInformation,
|
|
IN DWORD dwTypeMask,
|
|
IN DWORDLONG dwlConditionMask)
|
|
{
|
|
OSVERSIONINFOEXW viex;
|
|
|
|
/* NOTE: szCSDVersion is ignored, we don't need to convert it to Unicode */
|
|
viex.dwOSVersionInfoSize = sizeof(viex);
|
|
viex.dwMajorVersion = lpVersionInformation->dwMajorVersion;
|
|
viex.dwMinorVersion = lpVersionInformation->dwMinorVersion;
|
|
viex.dwBuildNumber = lpVersionInformation->dwBuildNumber;
|
|
viex.dwPlatformId = lpVersionInformation->dwPlatformId;
|
|
viex.wServicePackMajor = lpVersionInformation->wServicePackMajor;
|
|
viex.wServicePackMinor = lpVersionInformation->wServicePackMinor;
|
|
viex.wSuiteMask = lpVersionInformation->wSuiteMask;
|
|
viex.wProductType = lpVersionInformation->wProductType;
|
|
viex.wReserved = lpVersionInformation->wReserved;
|
|
return VerifyVersionInfoW(&viex, dwTypeMask, dwlConditionMask);
|
|
}
|
|
|
|
/* EOF */
|