1 2 | def AbortSystemShutdown(computer: str) -> int: |
1 2 | def AbortSystemShutdownA(computer: str) -> int: |
1 2 | def AbortSystemShutdownW(computer: str) -> int: |
1 2 | def ActivateKeyboardLayout(hkl: int, flags: int) -> HANDLE: |
1 2 | def Beep(freq: int, duration: int) -> bool: |
The frequency of the sound, in hertz. This parameter must be in the range 37 through 32,767
The duration of the sound, in milliseconds.
1 2 | def BlockInput(b: bool) -> int: |
1 2 | def CloseHandle(h: HANDLE) -> int: |
1 2 | def CommandLineToArgv(cmd_line: str) -> str: |
1 2 | def CommandLineToArgvW(cmd_line: str) -> str: |
1 2 | def CopyFile(current_file: str, new_file: str, bool_fail_if_exists: bool) -> int: |
1 2 | def CopyFileA(current_file: str, new_file: str, bool_fail_if_exists: bool) -> int: |
1 2 | def CopyFileW(current_file: str, new_file: str, bool_fail_if_exists: bool) -> int: |
1 2 | def DeleteFile(target_file: str) -> int: |
1 2 | def DeleteFileA(target_file: str) -> int: |
1 2 | def DeleteFileW(target_file: str) -> int: |
1 2 | def DestroyIcon(ic: HICON) -> int: |
1 2 | def DrawIcon(hdc: HDC, x: int, y: int, icon: HICON) -> bool: |
Handle to a device context
The X-position to draw the icon at
The Y-position to draw the icon at
The icon to be drawn
1 2 | def DrawIconEx(hdc: HDC, x: int, y: int, icon: HICON, width: int, height: int, frame: int, brush: HBRUSH, diFlags: int) -> bool: |
Handle to a device context
The X-position to draw the icon at
The Y-position to draw the icon at
The icon to be drawn
The logical width of the icon or cursor.
The logical height of the icon or cursor.
The index of the frame to draw, if hIcon identifies an animated cursor. This parameter is ignored if the icon argument does not identify an animated cursor.
A handle to a brush that the system uses for flicker-free drawing, or None.
Additional flags
1 2 | def EnableWindow(h: HWND, enabled: bool) -> int: |
1 2 | def EnumChildWindows(hwnd: HWND, callback: FunctionType, lParam: AnyType) -> NoneType: |
Handle to a window to enumerate, or None
Callback function to be called for every child window found with two arguments commonly named ``hWnd, lParam``.
[optional] This argument will be passed as the lParam value for the callback function, default is set to None.
1 2 | def ExitWindows() -> bool: |
1 2 | def ExitWindowsEx(flags: int, reason: int) -> bool: |
The shutdown type.
The reason for initiating the shutdown.
1 2 | def ExtractIcon(hinst: HINSTANCE, name: str, index: int) -> HANDLE: |
1 2 | def ExtractIconA(hinst: HINSTANCE, name: str, index: int) -> HANDLE: |
1 2 | def ExtractIconW(hinst: HINSTANCE, name: str, index: int) -> HANDLE: |
1 2 | def FillRect(hdc: HDC, rect: tuple, hbr: HBRUSH) -> HWND: |
Handle to a device context
Rectangle to be filled; tuple of 4 integers (x1, y1, x2, y2)
Brush to paint the rectangle with
1 2 | def GetClientRect(hdc: HDC) -> tuple: |
Handle to a device context
1 2 | def GetCommandLine() -> str: |
1 2 | def GetCommandLineA() -> str: |
1 2 | def GetCommandLineW() -> str: |
1 2 | def GetComputerName() -> str: |
1 2 | def GetComputerNameA() -> str: |
1 2 | def GetComputerNameEx(target_name: int) -> str: |
1 2 | def GetComputerNameExA(target_name: int) -> str: |
1 2 | def GetComputerNameExW(target_name: int) -> str: |
1 2 | def GetComputerNameW() -> str: |
1 2 | def GetConsoleWindow() -> O: |
1 2 | def GetCursorInfo() -> (int, HCURSOR, (int, int)): |
1 2 | def GetCursorPos() -> bool: |
1 2 | def GetDC(hwnd: int) -> HDC: |
Handle to the window to retrieve the Device Context from or None
1 2 | def GetDesktopWindow() -> HWND: |
1 2 | def GetDialogBaseUnits(): |
1 2 | def GetDlgCtrlID(h: HWND) -> int: |
1 2 | def GetKeyboardLayout(thread: int): |
1 2 | def GetLastError() -> int: |
1 2 | def GetModuleHandle(module: str) -> HANDLE: |
1 2 | def GetModuleHandleA(module: str) -> HANDLE: |
1 2 | def GetModuleHandleW(module: str) -> HANDLE: |
1 2 | def GetSystemMetrics(int: nIndex) -> int: |
The system metric or configuration setting to be retrieved.
1 2 | def GetTopWindow(hWnd: HWND) -> HWND: |
A handle to the parent window whose child windows are to be examined, or None.
1 2 | def GetWindowPlacement(hwnd: HWND) -> (int, int, (int, int), (int, int), (int, int, int, int)): |
Handle to a window
1 2 | def GetWindowRect(hwnd: HWND) -> (int, int, int, int): |
Handle to a window
1 2 | def GetWindowText(hwnd: HWND) -> str: |
Handle to a window
1 2 | def GetWindowTextA(hwnd: HWND) -> str: |
Handle to a window
1 2 | def GetWindowTextLength(hwnd: HWND) -> int: |
Handle to a window
1 2 | def GetWindowTextLengthA(hwnd: HWND) -> int: |
Handle to a window
1 2 | def GetWindowTextLengthW(hwnd: HWND) -> int: |
Handle to a window
1 2 | def GetWindowTextW(hwnd: HWND) -> str: |
Handle to a window
1 2 | def InitiateSystemShutdown(machine: str, message: str, displayTime: int, bForceAppsClosed: bool, bRebootAfterShutdown: bool) -> bool: |
The network name of the computer to be shut down, or None to shut down the current machine.
The message to display before shutdown, or None.
The length of time that the shutdown dialog box should be displayed, in seconds.
Whether applications should be force closed or not.
Whether the machine should restart or not.
1 2 | def InitiateSystemShutdownA(machine: str, message: str, displayTime: int, bForceAppsClosed: bool, bRebootAfterShutdown: bool) -> bool: |
The network name of the computer to be shut down, or None to shut down the current machine.
The message to display before shutdown, or None.
The length of time that the shutdown dialog box should be displayed, in seconds.
Whether applications should be force closed or not.
Whether the machine should restart or not.
1 2 | def InitiateSystemShutdownW(machine: str, message: str, displayTime: int, bForceAppsClosed: bool, bRebootAfterShutdown: bool) -> bool: |
The network name of the computer to be shut down, or None to shut down the current machine.
The message to display before shutdown, or None.
The length of time that the shutdown dialog box should be displayed, in seconds.
Whether applications should be force closed or not.
Whether the machine should restart or not.
1 2 | def InvalidateRect(hwnd: HWND, rect: tuple, erase: bool) -> bool: |
Handle to a window, or None
Rectangle with coordinates to be redrawn (x1, y1, x2, y2), or None
Whether the background within the update region is to be erased when the update region is processed.
1 2 | def LoadCursor(hInstance: HINSTANCE, cursor: int) -> HCURSOR: |
A handle to an instance of the module whose executable file contains the cursor to be loaded, or None.
The name of the cursor resource to be loaded.
1 2 | def LoadCursorA(hInstance: HINSTANCE, cursor: int) -> HCURSOR: |
A handle to an instance of the module whose executable file contains the cursor to be loaded, or None.
The name of the cursor resource to be loaded.
1 2 | def LoadCursorFromFile(fName: str) -> HCURSOR: |
The source of the file data to be used to create the cursor. The data in the file must be in either .CUR or .ANI format.
1 2 | def LoadCursorFromFileA(fName: str) -> HCURSOR: |
The source of the file data to be used to create the cursor. The data in the file must be in either .CUR or .ANI format.
1 2 | def LoadCursorFromFileW(fName: str) -> HCURSOR: |
The source of the file data to be used to create the cursor. The data in the file must be in either .CUR or .ANI format.
1 2 | def LoadCursorW(hInstance: HINSTANCE, cursor: int) -> HCURSOR: |
A handle to an instance of the module whose executable file contains the cursor to be loaded, or None.
The name of the cursor resource to be loaded.
1 2 | def LoadIcon(hInstance: int, IconName: int) -> HICON: |
Handle to the instance whose executable file contains the icon to be loaded, or None.
The icon to be loaded, parsed as an UTF-16 string from an integer
1 2 | def LoadIconA(hInstance: int, IconName: int) -> HICON: |
Handle to the instance whose executable file contains the icon to be loaded, or None.
The icon to be loaded, parsed as an ASCII string from an integer
1 2 | def LoadIconW(hInstance: int, IconName: int) -> HICON: |
Handle to the instance whose executable file contains the icon to be loaded, or None.
The icon to be loaded, parsed as an UTF-16 string from an integer
1 2 | def LoadImage(hInstance: HINSTANCE, name: int/str, type: int, width: int, height: int, fLoad: int) -> HANDLE: |
A handle to the module of either a DLL or executable (.exe) that contains the image to be loaded, or None.
The image to be loaded.
The type of image to be loaded.
The width, in pixels, of the icon or cursor.
The height, in pixels, of the icon or cursor.
Any of the following values; ``LR_CREATEDIBSECTION, LR_DEFAULTCOLOR, LR_DEFAULTSIZE, LR_LOADFROMFILE, LR_LOADMAP3DCOLORS, LR_LOADTRANSPARENT, LR_MONOCHROME, LR_SHARED or LR_VGACOLOR``
1 2 | def LoadImageA(hInstance: HINSTANCE, name: int/str, type: int, width: int, height: int, fLoad: int) -> HANDLE: |
A handle to the module of either a DLL or executable (.exe) that contains the image to be loaded, or None.
The image to be loaded.
The type of image to be loaded.
The width, in pixels, of the icon or cursor.
The height, in pixels, of the icon or cursor.
Any of the following values; ``LR_CREATEDIBSECTION, LR_DEFAULTCOLOR, LR_DEFAULTSIZE, LR_LOADFROMFILE, LR_LOADMAP3DCOLORS, LR_LOADTRANSPARENT, LR_MONOCHROME, LR_SHARED or LR_VGACOLOR``
1 2 | def LoadImageW(hInstance: HINSTANCE, name: int/str, type: int, width: int, height: int, fLoad: int) -> HANDLE: |
A handle to the module of either a DLL or executable (.exe) that contains the image to be loaded, or None.
The image to be loaded.
The type of image to be loaded.
The width, in pixels, of the icon or cursor.
The height, in pixels, of the icon or cursor.
Any of the following values; ``LR_CREATEDIBSECTION, LR_DEFAULTCOLOR, LR_DEFAULTSIZE, LR_LOADFROMFILE, LR_LOADMAP3DCOLORS, LR_LOADTRANSPARENT, LR_MONOCHROME, LR_SHARED or LR_VGACOLOR``
1 2 | def MessageBeep(sound: int) -> int: |
The sound to be played. The sounds are set by the user through the Sound control panel application, and then stored in the registry. Any of the Message Box icon values or 0xFFFFFFFF.
1 2 | def MessageBox(hWnd: HWND, msg: str, title: str, type: int) -> int: |
The parent window of the Message Box, or None.
The message to be displayed, as an UTF-16 string.
The dialog box title, as an UTF-16 string.
The contents and behavior of the dialog box.
1 2 | def MessageBoxA(hWnd: HWND, msg: str, title: str, type: int) -> int: |
The parent window of the Message Box, or None.
The message to be displayed, as an ASCII string.
The dialog box title, as an ASCII string.
The contents and behavior of the dialog box.
1 2 | def MessageBoxIndirect(hwnd: int, ic: HICON) -> int: |
1 2 | def MessageBoxIndirectA(hwnd: int, ic: HICON) -> int: |
1 2 | def MessageBoxIndirectW(hwnd: int, ic: HICON) -> int: |
1 2 | def MessageBoxW(hWnd: HWND, msg: str, title: str, type: int) -> int: |
The parent window of the Message Box, or None.
The message to be displayed, as an UTF-16 string.
The dialog box title, as an UTF-16 string.
The contents and behavior of the dialog box.
1 2 | def PlaySound(sound: str/int, mod: int, flags: int) -> int: |
1 2 | def PlaySoundA(sound: str/int, mod: int, flags: int) -> int: |
1 2 | def PlaySoundW(sound: str/int, mod: int, flags: int) -> int: |
1 2 | def RedrawWindow(hwnd: HWND, rect: tuple, region: HRGN, flags: int) -> bool: |
Handle to a window, or None
Rectangle with coordinates to be redrawn (x1, y1, x2, y2), or None
Handle to a region to be redrawn, or None
[optional] Redrawing flags. Default are RDW_ALLCHILDREN, RDW_ERASE and RDW_INVALIDATE
1 2 | def ReleaseDC(hwnd: HWND, hdc: HDC) -> bool: |
Handle to a window to be released
A handle to a device context to be released
1 2 | def SendDlgItemMessage(h_dlg: HWND, item: int, msg: int, w_param: str/int, l_param: str/int/tuple) -> HANDLE: |
1 2 | def SendDlgItemMessageA(h_dlg: HWND, item: int, msg: int, w_param: str/int, l_param: str/int/tuple) -> HANDLE: |
1 2 | def SendDlgItemMessageW(h_dlg: HWND, item: int, msg: int, w_param: str/int, l_param: str/int/tuple) -> HANDLE: |
1 2 | def SendMessage(h: HWND, msg: int, w_param: int, l_param_x: str/int, l_param_y: int) -> HANDLE: |
1 2 | def SendMessageA(h: HWND, msg: int, w_param: int, l_param_x: str/int, l_param_y: int) -> HANDLE: |
1 2 | def SendMessageW(h: HWND, msg: int, w_param: int, l_param_x: str/int, l_param_y: int) -> HANDLE: |
1 2 | def SetCursorPos(x: int, y: int) -> bool: |
The new X-coordinate of the cursor
The new Y-coordinate of the cursor
1 2 | def SetDlgItemText(h: HWND, ctrl: int, s: str) -> int: |
1 2 | def SetDlgItemTextA(h: HWND, ctrl: int, s: str) -> int: |
1 2 | def SetDlgItemTextW(h: HWND, ctrl: int, s: str) -> int: |
1 2 | def ShowWindow(hwnd: HWND, nCmdShow: int) -> bool: |
Handle to a window
The new show state.
1 2 | def Sleep(dwMilliseconds: int) -> NoneType: |
The amount to wait in milliseconds
1 2 | def SwitchToThisWindow(hwnd: HWND, bAltTab: bool) -> NoneType: |
Handle to a window
Specifies whether the window is being switched to using the Alt/Ctl+Tab key sequence or not.
1 2 | def WindowFromDC(hdc: HDC) -> HWND: |
Handle to a device context
1 2 | def WindowFromPhysicalPoint(point: tuple) -> HWND: |
The point to be checked, as a tuple of two integers (x, y).
1 2 | def WindowFromPoint(point: tuple) -> HWND: |
The point to be checked, as a tuple of two integers (x, y).
1 2 | def rand() -> int: |