Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
749 B

  1. /*++
  2. Copyright (c) 2002 Microsoft Corporation
  3. Module Name:
  4. WinXPSP1VersionLie.cpp
  5. Abstract:
  6. This DLL hooks GetVersion and GetVersionEx so that they return Windows XP
  7. version credentials.
  8. Notes:
  9. This is a general purpose shim.
  10. History:
  11. 09/05/2002 robkenny Created.
  12. --*/
  13. #include "precomp.h"
  14. IMPLEMENT_SHIM_BEGIN(WinXPSP1VersionLie)
  15. #include "ShimHookMacro.h"
  16. DWORD MajorVersion = 5;
  17. DWORD MinorVersion = 1;
  18. DWORD BuildNumber = 2600;
  19. SHORT SpMajorVersion = 1;
  20. SHORT SpMinorVersion = 0;
  21. DWORD PlatformId = VER_PLATFORM_WIN32_NT;
  22. CString * csServicePack = NULL;
  23. #include "VersionLieTemplate.h"
  24. IMPLEMENT_SHIM_END