diff --git a/stubs/pywin32/win32/win32api.pyi b/stubs/pywin32/win32/win32api.pyi index 855559c79..1961d54e0 100644 --- a/stubs/pywin32/win32/win32api.pyi +++ b/stubs/pywin32/win32/win32api.pyi @@ -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): ...