69,369
社区成员
发帖
与我相关
我的任务
分享
#include <stdio.h>
#include <windows.h>
#include <tchar.h>
typedef struct _VM_COUNTERS {
SIZE_T PeakVirtualSize;
SIZE_T VirtualSize;
ULONG PageFaultCount;
SIZE_T PeakWorkingSetSize;
SIZE_T WorkingSetSize;
SIZE_T QuotaPeakPagedPoolUsage;
SIZE_T QuotaPagedPoolUsage;
SIZE_T QuotaPeakNonPagedPoolUsage;
SIZE_T QuotaNonPagedPoolUsage;
SIZE_T PagefileUsage;
SIZE_T PeakPagefileUsage;
} VM_COUNTERS;
typedef struct _TT
{
LARGE_INTEGER CreateTime;
VM_COUNTERS VmCounters;
} TT;
typedef struct _SS
{
LARGE_INTEGER CreateTime;
VM_COUNTERS VmCounters;
ULONG PrivateUsage;
} SS;
int _tmain(int argc, _TCHAR* argv[])
{
_tprintf(TEXT("%d %d\r\n"), sizeof(SS), sizeof(TT));
return 0;
}
// Output:
// 56 56
// 请按任意键继续. . .