Lines Matching refs:ctypes
6 import ctypes
47 class PerformanceInfo(ctypes.Structure):
51 _fields_ = [('size', ctypes.c_ulong),
52 ('CommitTotal', ctypes.c_size_t),
53 ('CommitLimit', ctypes.c_size_t),
54 ('CommitPeak', ctypes.c_size_t),
55 ('PhysicalTotal', ctypes.c_size_t),
56 ('PhysicalAvailable', ctypes.c_size_t),
57 ('SystemCache', ctypes.c_size_t),
58 ('KernelTotal', ctypes.c_size_t),
59 ('KernelPaged', ctypes.c_size_t),
60 ('KernelNonpaged', ctypes.c_size_t),
61 ('PageSize', ctypes.c_size_t),
62 ('HandleCount', ctypes.c_ulong),
63 ('ProcessCount', ctypes.c_ulong),
64 ('ThreadCount', ctypes.c_ulong)]
67 self.size = ctypes.sizeof(self)
71 ctypes.windll.psapi.GetPerformanceInfo(
72 ctypes.byref(performance_info), performance_info.size)