Home | History | Annotate | Download | only in system

Lines Matching refs:ctypes

36 import ctypes
231 class PROCESSENTRY32(ctypes.Structure):
232 _fields_ = [("dwSize", ctypes.c_ulong),
233 ("cntUsage", ctypes.c_ulong),
234 ("th32ProcessID", ctypes.c_ulong),
235 ("th32DefaultHeapID", ctypes.c_ulong),
236 ("th32ModuleID", ctypes.c_ulong),
237 ("cntThreads", ctypes.c_ulong),
238 ("th32ParentProcessID", ctypes.c_ulong),
239 ("pcPriClassBase", ctypes.c_ulong),
240 ("dwFlags", ctypes.c_ulong),
241 ("szExeFile", ctypes.c_char * 260)]
243 CreateToolhelp32Snapshot = ctypes.windll.kernel32.CreateToolhelp32Snapshot
244 Process32First = ctypes.windll.kernel32.Process32First
245 Process32Next = ctypes.windll.kernel32.Process32Next
246 CloseHandle = ctypes.windll.kernel32.CloseHandle
250 pe32.dwSize = ctypes.sizeof(PROCESSENTRY32)
252 if not Process32First(hProcessSnap, ctypes.byref(pe32)):
260 if not Process32Next(hProcessSnap, ctypes.byref(pe32)):