100#define SHIM_NS Win95VersionLie
101#include <setup_shim.inl>
127#define SHIM_NUM_HOOKS 3
128#define SHIM_SETUP_HOOKS \
129 SHIM_HOOK(0, "KERNEL32.DLL", "GetVersion", SHIM_OBJ_NAME(APIHook_GetVersion)) \
130 SHIM_HOOK(1, "KERNEL32.DLL", "GetVersionExA", SHIM_OBJ_NAME(APIHook_GetVersionExA)) \
131 SHIM_HOOK(2, "KERNEL32.DLL", "GetVersionExW", SHIM_OBJ_NAME(APIHook_GetVersionExW))
133#include <implement_shim.inl>
138#define SHIM_NS Win98VersionLie
139#include <setup_shim.inl>
165#define SHIM_NUM_HOOKS 3
166#define SHIM_SETUP_HOOKS \
167 SHIM_HOOK(2, "KERNEL32.DLL", "GetVersion", SHIM_OBJ_NAME(APIHook_GetVersion)) \
168 SHIM_HOOK(0, "KERNEL32.DLL", "GetVersionExA", SHIM_OBJ_NAME(APIHook_GetVersionExA)) \
169 SHIM_HOOK(1, "KERNEL32.DLL", "GetVersionExW", SHIM_OBJ_NAME(APIHook_GetVersionExW))
171#include <implement_shim.inl>
175#define SHIM_NS WinNT4SP5VersionLie
176#define VERSION_INFO g_WinNT4SP5
177#include "versionlie.inl"
180#define SHIM_NS Win2000VersionLie
181#define VERSION_INFO g_Win2000
182#include "versionlie.inl"
184#define SHIM_NS Win2000SP1VersionLie
185#define VERSION_INFO g_Win2000SP1
186#include "versionlie.inl"
188#define SHIM_NS Win2000SP2VersionLie
189#define VERSION_INFO g_Win2000SP2
190#include "versionlie.inl"
192#define SHIM_NS Win2000SP3VersionLie
193#define VERSION_INFO g_Win2000SP3
194#include "versionlie.inl"
197#define SHIM_NS WinXPVersionLie
198#define VERSION_INFO g_WinXP
199#include "versionlie.inl"
201#define SHIM_NS WinXPSP1VersionLie
202#define VERSION_INFO g_WinXPSP1
203#include "versionlie.inl"
205#define SHIM_NS WinXPSP2VersionLie
206#define VERSION_INFO g_WinXPSP2
207#include "versionlie.inl"
209#define SHIM_NS WinXPSP3VersionLie
210#define VERSION_INFO g_WinXPSP3
211#include "versionlie.inl"
214#define SHIM_NS Win2k3RTMVersionLie
215#define VERSION_INFO g_Win2k3RTM
216#include "versionlie.inl"
218#define SHIM_NS Win2k3SP1VersionLie
219#define VERSION_INFO g_Win2k3SP1
220#include "versionlie.inl"
223#define SHIM_NS VistaRTMVersionLie
224#define VERSION_INFO g_WinVistaRTM
225#include "versionlie.inl"
227#define SHIM_NS VistaSP1VersionLie
228#define VERSION_INFO g_WinVistaSP1
229#include "versionlie.inl"
231#define SHIM_NS VistaSP2VersionLie
232#define VERSION_INFO g_WinVistaSP2
233#include "versionlie.inl"
236#define SHIM_NS Win7RTMVersionLie
237#define VERSION_INFO g_Win7RTM
238#include "versionlie.inl"
240#define SHIM_NS Win7SP1VersionLie
241#define VERSION_INFO g_Win7SP1
242#include "versionlie.inl"
245#define SHIM_NS Win8RTMVersionLie
246#define VERSION_INFO g_Win8RTM
247#include "versionlie.inl"
249#define SHIM_NS Win81RTMVersionLie
250#define VERSION_INFO g_Win81RTM
251#include "versionlie.inl"
254#define SHIM_NS Win10RTMVersionLie
255#define VERSION_INFO g_Win10RTM
256#include "versionlie.inl"
259#define SHIM_NS Win2k16RTMVersionLie
260#define VERSION_INFO g_Win2k16RTM
261#include "versionlie.inl"
264#define SHIM_NS Win2k19RTMVersionLie
265#define VERSION_INFO g_Win2k19RTM
266#include "versionlie.inl"
struct VersionLieInfo VersionLieInfo
VersionLieInfo g_Win2k3SP1
VersionLieInfo g_Win2000SP2
VersionLieInfo g_WinNT4SP5
VersionLieInfo g_WinVistaRTM
VersionLieInfo g_WinXPSP1
BOOL WINAPI SHIM_OBJ_NAME() APIHook_GetVersionExW(LPOSVERSIONINFOEXA lpOsVersionInfo)
BOOL WINAPI SHIM_OBJ_NAME() APIHook_GetVersionExA(LPOSVERSIONINFOEXA lpOsVersionInfo)
BOOL(WINAPI * GETVERSIONEXAPROC)(LPOSVERSIONINFOEXA)
VersionLieInfo g_Win2000SP1
VersionLieInfo g_Win81RTM
VersionLieInfo g_Win10RTM
VersionLieInfo g_Win2k19RTM
VersionLieInfo g_Win2k16RTM
VersionLieInfo g_Win2k3RTM
VersionLieInfo g_WinXPSP2
DWORD WINAPI SHIM_OBJ_NAME() APIHook_GetVersion()
VersionLieInfo g_Win2000SP3
VersionLieInfo g_WinVistaSP2
VersionLieInfo g_WinXPSP3
BOOL FakeVersion(LPOSVERSIONINFOEXA pResult, VersionLieInfo *pFake)
VersionLieInfo g_WinVistaSP1
#define VER_PLATFORM_WIN32_NT
#define VER_PLATFORM_WIN32_WINDOWS
STRSAFEAPI StringCbCopyW(STRSAFE_LPWSTR pszDest, size_t cbDest, STRSAFE_LPCWSTR pszSrc)
STRSAFEAPI StringCbCopyA(STRSAFE_LPSTR pszDest, size_t cbDest, STRSAFE_LPCSTR pszSrc)
ULONG dwOSVersionInfoSize
ULONG dwOSVersionInfoSize
struct _OSVERSIONINFOEXA * LPOSVERSIONINFOEXA
struct _OSVERSIONINFOEXW * LPOSVERSIONINFOEXW