Source code of Windows XP (NT5)
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.

74 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 2001 Microsoft Corporation
  3. Module Name:
  4. wow64nt.c
  5. Abstract:
  6. This module contains the Wow64 thunks to retreive information about the
  7. native system without actually thunking the values.
  8. Author:
  9. Samer Arafeh (samera) 5-May-2001
  10. Environment:
  11. User Mode only
  12. Revision History:
  13. --*/
  14. #include "csrdll.h"
  15. #include "ldrp.h"
  16. #include "ntwow64.h"
  17. NTSTATUS
  18. RtlpWow64GetNativeSystemInformation(
  19. IN SYSTEM_INFORMATION_CLASS SystemInformationClass,
  20. IN PVOID NativeSystemInformation,
  21. IN ULONG InformationLength,
  22. OUT PULONG ReturnLength OPTIONAL
  23. )
  24. /*++
  25. Routine Description:
  26. This function queries information about the native system. This function has the same
  27. semantics as NtQuerySystemInformation.
  28. Arguments:
  29. SystemInformationClass - The system information class about which
  30. to retrieve information.
  31. NativeSystemInformation - A pointer to a buffer which receives the specified
  32. information. The format and content of the buffer depend on the
  33. specified system information class.
  34. SystemInformationLength - Specifies the length in bytes of the system
  35. information buffer.
  36. ReturnLength - An optional pointer which, if specified, receives the
  37. number of bytes placed in the system information buffer.
  38. Return Value:
  39. NTSTATUS
  40. --*/
  41. {
  42. return NtWow64GetNativeSystemInformation(
  43. SystemInformationClass,
  44. NativeSystemInformation,
  45. InformationLength,
  46. ReturnLength
  47. );
  48. }