Counter Strike : Global Offensive Source Code
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.

58 lines
1.3 KiB

  1. //====== Copyright c 1996-2007, Valve Corporation, All rights reserved. =======//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. #ifndef SYSTEMINFORMATION_H
  9. #define SYSTEMINFORMATION_H
  10. #ifdef _WIN32
  11. #pragma once
  12. #endif
  13. #include "tier0/platform.h"
  14. #ifndef PLATFORM_INTERFACE
  15. #define PLATFORM_INTERFACE
  16. #endif
  17. //
  18. // Defines a possible outcome of a system call
  19. //
  20. enum SYSTEM_CALL_RESULT_t
  21. {
  22. SYSCALL_SUCCESS = 0, // System call succeeded
  23. SYSCALL_FAILED = 1, // System call failed
  24. SYSCALL_NOPROC = 2, // Failed to find required system procedure
  25. SYSCALL_NODLL = 3, // Failed to find or load required system module
  26. SYSCALL_UNSUPPORTED = 4, // System call unsupported on the OS
  27. };
  28. //
  29. // Information about paged pool memory
  30. //
  31. struct PAGED_POOL_INFO_t
  32. {
  33. uint32 numPagesUsed; // Number of Paged Pool pages used
  34. uint32 numPagesFree; // Number of Paged Pool pages free
  35. };
  36. //
  37. // Plat_GetMemPageSize
  38. // Returns the size of a memory page in kilobytes.
  39. //
  40. PLATFORM_INTERFACE uint32 Plat_GetMemPageSize();
  41. //
  42. // Plat_GetPagedPoolInfo
  43. // Fills in the paged pool info structure if successful.
  44. //
  45. PLATFORM_INTERFACE SYSTEM_CALL_RESULT_t Plat_GetPagedPoolInfo( PAGED_POOL_INFO_t *pPPI );
  46. #endif // #ifndef SYSTEMINFORMATION_H