PERFORMANCE_INFORMATION for PureBasic?
Posted: Sun Oct 03, 2010 8:34 pm
Hey there!
There is a PSAPI Structure called PERFORMANCE_INFORMATION (which can be found in psapi.dll), but since there is no PureBasic version of this structure, I wonder how to convert it.
I don't know what to di with size_t...
Cheers, Mok.
There is a PSAPI Structure called PERFORMANCE_INFORMATION (which can be found in psapi.dll), but since there is no PureBasic version of this structure, I wonder how to convert it.
Code: Select all
typedef struct _PERFORMANCE_INFORMATION {
DWORD cb;
SIZE_T CommitTotal;
SIZE_T CommitLimit;
SIZE_T CommitPeak;
SIZE_T PhysicalTotal;
SIZE_T PhysicalAvailable;
SIZE_T SystemCache;
SIZE_T KernelTotal;
SIZE_T KernelPaged;
SIZE_T KernelNonpaged;
SIZE_T PageSize;
DWORD HandleCount;
DWORD ProcessCount;
DWORD ThreadCount;
} PERFORMANCE_INFORMATION, *PPERFORMANCE_INFORMATION;
Cheers, Mok.