mirror of
https://github.com/iperov/DeepFaceLive
synced 2025-07-08 05:51:41 -07:00
code release
This commit is contained in:
parent
b941ba41a3
commit
a902f11f74
354 changed files with 826570 additions and 1 deletions
38
xlib/api/win32/kernel32/kernel32.py
Normal file
38
xlib/api/win32/kernel32/kernel32.py
Normal file
|
@ -0,0 +1,38 @@
|
|||
from ctypes import c_void_p, c_wchar_p, POINTER
|
||||
from ..wintypes import BOOL, DWORD, ERROR, HANDLE, HRESULT, LARGE_INTEGER, dll_import
|
||||
|
||||
|
||||
class PriorityClass(DWORD):
|
||||
HIGH_PRIORITY_CLASS = DWORD(0x00000080)
|
||||
ABOVE_NORMAL_PRIORITY_CLASS = DWORD(0x00008000)
|
||||
NORMAL_PRIORITY_CLASS = DWORD(0x00000020)
|
||||
BELOW_NORMAL_PRIORITY_CLASS = DWORD(0x00004000)
|
||||
IDLE_PRIORITY_CLASS = DWORD(0x00000040)
|
||||
|
||||
|
||||
#
|
||||
@dll_import('kernel32')
|
||||
def CreateEventW(lpEventAttributes : c_void_p, bManualReset : BOOL, bInitialState : BOOL, lpName : c_wchar_p) -> HANDLE: ...
|
||||
|
||||
@dll_import('kernel32')
|
||||
def GetCurrentProcess() -> HANDLE: ...
|
||||
|
||||
@dll_import('kernel32')
|
||||
def GetPriorityClass(hProcess : HANDLE) -> DWORD: ...
|
||||
|
||||
@dll_import('kernel32')
|
||||
def QueryPerformanceCounter(lpPerformanceCount : POINTER(LARGE_INTEGER) ) -> BOOL: ...
|
||||
|
||||
@dll_import('kernel32')
|
||||
def QueryPerformanceFrequency(lpFrequency : POINTER(LARGE_INTEGER) ) -> BOOL: ...
|
||||
|
||||
@dll_import('kernel32')
|
||||
def SetPriorityClass(hProcess : HANDLE, priority_class : DWORD ) -> BOOL: ...
|
||||
|
||||
@dll_import('kernel32')
|
||||
def WaitForSingleObject(hHandle : HANDLE, dwMilliseconds : DWORD) -> DWORD:...
|
||||
|
||||
@dll_import('kernel32')
|
||||
def Sleep( dwMilliseconds : DWORD):...
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue