diff options
| author | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
|---|---|---|
| committer | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
| commit | 39ed87570bdb2f86969d4be821c94b722dc71179 (patch) | |
| tree | abc53757f75f40c80278e87650ea92808274aa59 /mp/src/public/tier0/systeminformation.h | |
| download | source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip | |
First version of the SOurce SDK 2013
Diffstat (limited to 'mp/src/public/tier0/systeminformation.h')
| -rw-r--r-- | mp/src/public/tier0/systeminformation.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/mp/src/public/tier0/systeminformation.h b/mp/src/public/tier0/systeminformation.h new file mode 100644 index 00000000..91fb6c7c --- /dev/null +++ b/mp/src/public/tier0/systeminformation.h @@ -0,0 +1,56 @@ +//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//
+//=============================================================================//
+
+#ifndef SYSTEMINFORMATION_H
+#define SYSTEMINFORMATION_H
+
+#ifdef _WIN32
+ #pragma once
+#endif
+
+#ifndef PLATFORM_INTERFACE
+ #define PLATFORM_INTERFACE
+#endif
+
+//
+// Defines a possible outcome of a system call
+//
+enum SYSTEM_CALL_RESULT_t
+{
+ SYSCALL_SUCCESS = 0, // System call succeeded
+ SYSCALL_FAILED = 1, // System call failed
+ SYSCALL_NOPROC = 2, // Failed to find required system procedure
+ SYSCALL_NODLL = 3, // Failed to find or load required system module
+ SYSCALL_UNSUPPORTED = 4, // System call unsupported on the OS
+};
+
+
+//
+// Information about paged pool memory
+//
+struct PAGED_POOL_INFO_t
+{
+ unsigned long numPagesUsed; // Number of Paged Pool pages used
+ unsigned long numPagesFree; // Number of Paged Pool pages free
+};
+
+//
+// Plat_GetMemPageSize
+// Returns the size of a memory page in kilobytes.
+//
+PLATFORM_INTERFACE unsigned long Plat_GetMemPageSize();
+
+//
+// Plat_GetPagedPoolInfo
+// Fills in the paged pool info structure if successful.
+//
+PLATFORM_INTERFACE SYSTEM_CALL_RESULT_t Plat_GetPagedPoolInfo( PAGED_POOL_INFO_t *pPPI );
+
+
+
+#endif // #ifndef SYSTEMINFORMATION_H
|