Team Fortress 2 Source Code as on 22/4/2020
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.

56 lines
1.3 KiB

  1. //========= Copyright 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. #ifndef PLATFORM_INTERFACE
  14. #define PLATFORM_INTERFACE
  15. #endif
  16. //
  17. // Defines a possible outcome of a system call
  18. //
  19. enum SYSTEM_CALL_RESULT_t
  20. {
  21. SYSCALL_SUCCESS = 0, // System call succeeded
  22. SYSCALL_FAILED = 1, // System call failed
  23. SYSCALL_NOPROC = 2, // Failed to find required system procedure
  24. SYSCALL_NODLL = 3, // Failed to find or load required system module
  25. SYSCALL_UNSUPPORTED = 4, // System call unsupported on the OS
  26. };
  27. //
  28. // Information about paged pool memory
  29. //
  30. struct PAGED_POOL_INFO_t
  31. {
  32. unsigned long numPagesUsed; // Number of Paged Pool pages used
  33. unsigned long numPagesFree; // Number of Paged Pool pages free
  34. };
  35. //
  36. // Plat_GetMemPageSize
  37. // Returns the size of a memory page in kilobytes.
  38. //
  39. PLATFORM_INTERFACE unsigned long Plat_GetMemPageSize();
  40. //
  41. // Plat_GetPagedPoolInfo
  42. // Fills in the paged pool info structure if successful.
  43. //
  44. PLATFORM_INTERFACE SYSTEM_CALL_RESULT_t Plat_GetPagedPoolInfo( PAGED_POOL_INFO_t *pPPI );
  45. #endif // #ifndef SYSTEMINFORMATION_H