Add missing types to pywin32.win32api (#9920)

Co-authored-by: Francesc Elies <francesc.elies@mbbm-ast.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
Francesc Elies
2023-03-22 17:13:18 +01:00
committed by GitHub
parent f6f1fa3df4
commit 35a46915e6

View File

@@ -11,6 +11,20 @@ class _MonitorInfo(TypedDict):
Flags: int
Device: str
class _FileVersionInfo(TypedDict):
Signature: int
StrucVersion: int
FileVersionMS: int
FileVersionLS: int
ProductVersionMS: int
ProductVersionLS: int
FileFlagsMask: int
FileFlags: int
FileOS: int
FileType: int
FileSubtype: int
FileDate: None | Incomplete
def AbortSystemShutdown(computerName: str) -> None: ...
def InitiateSystemShutdown(computerName: str, message: str, timeOut, bForceClose, bRebootAfterShutdown) -> None: ...
def Apply(exceptionHandler, func, args): ...
@@ -91,7 +105,7 @@ def GetDomainName() -> str: ...
def GetEnvironmentVariable(variable): ...
def GetEnvironmentVariableW(Name) -> str: ...
def GetFileAttributes(pathName: str): ...
def GetFileVersionInfo(Filename: str, SubBlock: str) -> None: ...
def GetFileVersionInfo(__Filename: str, __SubBlock: str) -> _FileVersionInfo: ...
def GetFocus(): ...
def GetFullPathName(fileName: str) -> str: ...
def GetHandleInformation(__Object: int): ...
@@ -249,10 +263,10 @@ def WinExec(cmdLine: str, arg) -> None: ...
def WinHelp(hwnd: int, hlpFile: str, cmd, data: str | int = ...) -> None: ...
def WriteProfileSection(section: str, data: str, iniName: str | None = ...): ...
def WriteProfileVal(section: str, entry: str, value: str, iniName: str | None = ...) -> None: ...
def HIBYTE(val): ...
def LOBYTE(val): ...
def HIWORD(val): ...
def LOWORD(val): ...
def HIBYTE(__val: int) -> int: ...
def LOBYTE(__val: int) -> int: ...
def HIWORD(__val: int) -> int: ...
def LOWORD(__val: int) -> int: ...
def RGB(red, green, blue): ...
def MAKELANGID(PrimaryLanguage, SubLanguage): ...
def MAKEWORD(low, high): ...