pywin32: Use PEP 570 positional-only argument syntax and fix arguments (#11321)

This commit is contained in:
Avasam
2024-01-27 06:27:05 -05:00
committed by GitHub
parent d3b45a4de9
commit 0b8841edd8
50 changed files with 2964 additions and 2885 deletions

View File

@@ -6,12 +6,12 @@ from win32.lib.pywintypes import com_error
error: TypeAlias = com_error # noqa: Y042
def ADsOpenObject(path, username, password, iid: _win32typing.PyIID, reserved: int = ...): ...
def ADsGetObject(path, iid: _win32typing.PyIID): ...
def ADsBuildEnumerator(container: _win32typing.PyIADsContainer): ...
def ADsEnumerateNext(enum, num: int = ...): ...
def ADsOpenObject(path, username, password, iid: _win32typing.PyIID, reserved: int = ..., /): ...
def ADsGetObject(path, iid: _win32typing.PyIID, /): ...
def ADsBuildEnumerator(container: _win32typing.PyIADsContainer, /): ...
def ADsEnumerateNext(enum, num: int = ..., /): ...
def ADsGetLastError() -> tuple[Incomplete, Incomplete, Incomplete]: ...
def StringAsDS_SELECTION_LIST(*args, **kwargs): ... # incomplete
def StringAsDS_SELECTION_LIST(*args): ... # incomplete
DSOP_SCOPE_INIT_INFOs = _win32typing.PyDSOP_SCOPE_INIT_INFOs
CLSID_ADsDSOObject: _win32typing.PyIID

View File

@@ -1,5 +1,5 @@
import _win32typing
def EditSecurity(*args, **kwargs): ... # incomplete
def EditSecurity(hwndOwner, psi): ...
IID_ISecurityInformation: _win32typing.PyIID

View File

@@ -9,15 +9,16 @@ def OleCreate(
obFormatEtc,
obOleClientSite: _win32typing.PyIOleClientSite,
obStorage: _win32typing.PyIStorage,
/,
) -> _win32typing.PyIOleObject: ...
def OleLoadPicture(
stream: _win32typing.PyIStream, size, runMode, arg: _win32typing.PyIID, arg1: _win32typing.PyIID
stream: _win32typing.PyIStream, size, runMode, arg: _win32typing.PyIID, arg1: _win32typing.PyIID, /
) -> _win32typing.PyIUnknown: ...
def OleLoadPicturePath(
url_or_path: str, unk, reserved, clr, arg: _win32typing.PyIID, arg1: _win32typing.PyIID
url_or_path: str, unk, reserved, clr, arg: _win32typing.PyIID, arg1: _win32typing.PyIID, /
) -> _win32typing.PyIUnknown: ...
def OleSetContainedObject(unk: _win32typing.PyIUnknown, fContained) -> None: ...
def OleTranslateAccelerator(frame: _win32typing.PyIOleInPlaceFrame, frame_info, msg: _win32typing.PyMSG) -> None: ...
def OleSetContainedObject(unk: _win32typing.PyIUnknown, fContained, /) -> None: ...
def OleTranslateAccelerator(frame: _win32typing.PyIOleInPlaceFrame, frame_info, msg: _win32typing.PyMSG, /) -> None: ...
EMBDHLP_CREATENOW: int
EMBDHLP_DELAYCREATE: int

View File

@@ -75,8 +75,8 @@ APPBREAKFLAG_STEPTYPE_MACHINE: int
APPBREAKFLAG_STEPTYPE_MASK: int
APPBREAKFLAG_STEPTYPE_SOURCE: int
def GetStackAddress(*args, **kwargs): ... # incomplete
def GetThreadStateHandle(*args, **kwargs): ... # incomplete
def GetStackAddress(*args): ... # incomplete
def GetThreadStateHandle(*args): ... # incomplete
IID_IActiveScriptDebug: _win32typing.PyIID
IID_IActiveScriptErrorDebug: _win32typing.PyIID
@@ -121,4 +121,4 @@ IID_IRemoteDebugApplication: _win32typing.PyIID
IID_IRemoteDebugApplicationEvents: _win32typing.PyIID
IID_IRemoteDebugApplicationThread: _win32typing.PyIID
def SetThreadStateTrace(*args, **kwargs): ... # incomplete
def SetThreadStateTrace(*args): ... # incomplete

View File

@@ -2,9 +2,11 @@ from _typeshed import Incomplete
import _win32typing
def DirectSoundCreate(guid: _win32typing.PyIID | None = ..., unk: Incomplete | None = ...) -> _win32typing.PyIUnknown: ...
def DirectSoundCreate(guid: _win32typing.PyIID | None = ..., unk: Incomplete | None = ..., /) -> _win32typing.PyIUnknown: ...
def DirectSoundEnumerate(): ...
def DirectSoundCaptureCreate(guid: _win32typing.PyIID | None = ..., unk: Incomplete | None = ...) -> _win32typing.PyIUnknown: ...
def DirectSoundCaptureCreate(
guid: _win32typing.PyIID | None = ..., unk: Incomplete | None = ..., /
) -> _win32typing.PyIUnknown: ...
def DirectSoundCaptureEnumerate(): ...
def DSCAPS() -> _win32typing.PyDSCAPS: ...
def DSBCAPS() -> _win32typing.PyDSBCAPS: ...

View File

@@ -1,8 +1,8 @@
import _win32typing
def BindIFilterFromStorage(*args, **kwargs): ... # incomplete
def BindIFilterFromStream(*args, **kwargs): ... # incomplete
def LoadIFilter(*args, **kwargs): ... # incomplete
def BindIFilterFromStorage(*args): ... # incomplete
def BindIFilterFromStream(*args): ... # incomplete
def LoadIFilter(*args): ... # incomplete
CHUNK_EOC: int
CHUNK_EOP: int

View File

@@ -1,8 +1,8 @@
import _win32typing
def CoInternetCreateSecurityManager(reserved) -> _win32typing.PyIInternetSecurityManager: ...
def CoInternetIsFeatureEnabled(flags): ...
def CoInternetSetFeatureEnabled(flags, enable): ...
def CoInternetCreateSecurityManager(reserved, /) -> _win32typing.PyIInternetSecurityManager: ...
def CoInternetIsFeatureEnabled(flags, /): ...
def CoInternetSetFeatureEnabled(flags, enable, /): ...
FEATURE_ADDON_MANAGEMENT: int
FEATURE_BEHAVIORS: int

View File

@@ -4,40 +4,40 @@ import _win32typing
def HrInstallService() -> None: ...
def HrInstallMailboxAgent() -> None: ...
def HrCreateMailboxAgentProfile(serviceName: str, profile: str) -> None: ...
def HrCreateGatewayProfile(serviceName: str, profile: str) -> None: ...
def HrMailboxAgentExists(server: str, siteDN: str, rdn: str) -> None: ...
def HrCreateMailboxAgentProfile(serviceName: str, profile: str, /) -> None: ...
def HrCreateGatewayProfile(serviceName: str, profile: str, /) -> None: ...
def HrMailboxAgentExists(server: str, siteDN: str, rdn: str, /) -> None: ...
def HrAdminProgramExists() -> None: ...
def HrRemoveMailboxAgent(server: str, siteDN: str, rdn: str) -> None: ...
def HrRemoveProfile(profile: str) -> None: ...
def HrEnumOrganizations(rootDN: str, server: str) -> list[str]: ...
def HrEnumSites(server: str, organizationDN: str) -> list[str]: ...
def HrEnumContainers(server: str, siteDN: str, fSubtree) -> list[str]: ...
def HrEnumSiteAdmins(server: str, siteDN: str) -> list[str]: ...
def HrGetServiceAccountName(serviceName: str, serviceName1: str) -> str: ...
def HrCreateDirEntryIdEx(addrBook: _win32typing.PyIAddrBook, distinguishedName: str) -> str: ...
def HrCreateProfileName(profPrefix: str) -> str: ...
def HrFindExchangeGlobalAddresslist(addrBook: _win32typing.PyIAddrBook) -> str: ...
def HrGetExchangeStatus(server: str) -> tuple[Incomplete, Incomplete]: ...
def HrGetMailboxDN(session) -> str: ...
def HrGetServerDN(session) -> str: ...
def HrMAPIFindDefaultMsgStore(session: _win32typing.PyIMAPISession) -> str: ...
def HrMAPIFindFolder(folder: _win32typing.PyIMAPIFolder, name: str) -> str: ...
def HrMAPIFindFolderEx(msgStore: _win32typing.PyIMsgStore, sepString: str, path: str) -> str: ...
def HrMAPIFindIPMSubtree(msgStore: _win32typing.PyIMsgStore) -> str: ...
def HrMAPIFindInbox(msgStore: _win32typing.PyIMsgStore) -> str: ...
def HrMAPIFindStore(session: _win32typing.PyIMAPISession, name: str) -> _win32typing.PyIMsgStore: ...
def HrMAPIFindSubfolderEx(rootFolder: _win32typing.PyIMAPIFolder, sep: str, name: str) -> _win32typing.PyIMsgStore: ...
def HrMAPIOpenFolderEx(msgStore: _win32typing.PyIMsgStore, sep: str, name: str) -> _win32typing.PyIMAPIFolder: ...
def HrMAPISetPropBoolean(obj: _win32typing.PyIMAPIProp, tag) -> None: ...
def HrMAPISetPropLong(obj: _win32typing.PyIMAPIProp, tag) -> None: ...
def HrMailboxLogoff(inbox: _win32typing.PyIMsgStore) -> None: ...
def HrRemoveMailboxAgent(server: str, siteDN: str, rdn: str, /) -> None: ...
def HrRemoveProfile(profile: str, /) -> None: ...
def HrEnumOrganizations(rootDN: str, server: str, /) -> list[str]: ...
def HrEnumSites(server: str, organizationDN: str, /) -> list[str]: ...
def HrEnumContainers(server: str, siteDN: str, fSubtree, /) -> list[str]: ...
def HrEnumSiteAdmins(server: str, siteDN: str, /) -> list[str]: ...
def HrGetServiceAccountName(serviceName: str, serviceName1: str, /) -> str: ...
def HrCreateDirEntryIdEx(addrBook: _win32typing.PyIAddrBook, distinguishedName: str, /) -> str: ...
def HrCreateProfileName(profPrefix: str, /) -> str: ...
def HrFindExchangeGlobalAddresslist(addrBook: _win32typing.PyIAddrBook, /) -> str: ...
def HrGetExchangeStatus(server: str, /) -> tuple[Incomplete, Incomplete]: ...
def HrGetMailboxDN(session, /) -> str: ...
def HrGetServerDN(session, /) -> str: ...
def HrMAPIFindDefaultMsgStore(session: _win32typing.PyIMAPISession, /) -> str: ...
def HrMAPIFindFolder(folder: _win32typing.PyIMAPIFolder, name: str, /) -> str: ...
def HrMAPIFindFolderEx(msgStore: _win32typing.PyIMsgStore, sepString: str, path: str, /) -> str: ...
def HrMAPIFindIPMSubtree(msgStore: _win32typing.PyIMsgStore, /) -> str: ...
def HrMAPIFindInbox(msgStore: _win32typing.PyIMsgStore, /) -> str: ...
def HrMAPIFindStore(session: _win32typing.PyIMAPISession, name: str, /) -> _win32typing.PyIMsgStore: ...
def HrMAPIFindSubfolderEx(rootFolder: _win32typing.PyIMAPIFolder, sep: str, name: str, /) -> _win32typing.PyIMsgStore: ...
def HrMAPIOpenFolderEx(msgStore: _win32typing.PyIMsgStore, sep: str, name: str, /) -> _win32typing.PyIMAPIFolder: ...
def HrMAPISetPropBoolean(obj: _win32typing.PyIMAPIProp, tag, /) -> None: ...
def HrMAPISetPropLong(obj: _win32typing.PyIMAPIProp, tag, /) -> None: ...
def HrMailboxLogoff(inbox: _win32typing.PyIMsgStore, /) -> None: ...
def HrMailboxLogon(
session: _win32typing.PyIMAPISession, msgStore: _win32typing.PyIMsgStore, msgStoreDN: str, mailboxDN: str
session: _win32typing.PyIMAPISession, msgStore: _win32typing.PyIMsgStore, msgStoreDN: str, mailboxDN: str, /
) -> _win32typing.PyIMsgStore: ...
def HrOpenExchangePrivateStore(session: _win32typing.PyIMAPISession) -> _win32typing.PyIMsgStore: ...
def HrOpenExchangePublicFolders(store: _win32typing.PyIMsgStore) -> _win32typing.PyIMAPIFolder: ...
def HrOpenExchangePublicStore(session: _win32typing.PyIMAPISession) -> _win32typing.PyIMsgStore: ...
def HrOpenSessionObject(session: _win32typing.PyIMAPISession) -> _win32typing.PyIMAPIProp: ...
def HrOpenSiteContainer(session: _win32typing.PyIMAPISession) -> _win32typing.PyIMAPIProp: ...
def HrOpenSiteContainerAddressing(session: _win32typing.PyIMAPISession) -> _win32typing.PyIMAPIProp: ...
def HrOpenExchangePrivateStore(session: _win32typing.PyIMAPISession, /) -> _win32typing.PyIMsgStore: ...
def HrOpenExchangePublicFolders(store: _win32typing.PyIMsgStore, /) -> _win32typing.PyIMAPIFolder: ...
def HrOpenExchangePublicStore(session: _win32typing.PyIMAPISession, /) -> _win32typing.PyIMsgStore: ...
def HrOpenSessionObject(session: _win32typing.PyIMAPISession, /) -> _win32typing.PyIMAPIProp: ...
def HrOpenSiteContainer(session: _win32typing.PyIMAPISession, /) -> _win32typing.PyIMAPIProp: ...
def HrOpenSiteContainerAddressing(session: _win32typing.PyIMAPISession, /) -> _win32typing.PyIMAPIProp: ...

View File

@@ -2,21 +2,22 @@ from _typeshed import Incomplete
import _win32typing
def HexFromBin(val: str) -> str: ...
def BinFromHex(val: str) -> str: ...
def HexFromBin(val: str, /) -> str: ...
def BinFromHex(val: str, /) -> str: ...
def MAPIUninitialize() -> None: ...
def MAPIInitialize(init: _win32typing.MAPIINIT_0) -> None: ...
def MAPILogonEx(uiParam, profileName: str, password: str | None = ..., flags=...) -> _win32typing.PyIMAPISession: ...
def MAPIAdminProfiles(fFlags) -> _win32typing.PyIProfAdmin: ...
def MAPIInitialize(init: _win32typing.MAPIINIT_0, /) -> None: ...
def MAPILogonEx(uiParam, profileName: str, password: str | None = ..., flags=..., /) -> _win32typing.PyIMAPISession: ...
def MAPIAdminProfiles(fFlags, /) -> _win32typing.PyIProfAdmin: ...
def HrQueryAllRows(
table: _win32typing.PyIMAPITable,
properties: _win32typing.PySPropTagArray,
restrictions: _win32typing.PySRestriction,
sortOrderSet: _win32typing.PySSortOrderSet,
rowsMax,
/,
): ...
def RTFSync(message: _win32typing.PyIMessage, flags): ...
def WrapCompressedRTFStream(stream: _win32typing.PyIStream, flags) -> _win32typing.PyIStream: ...
def RTFSync(message: _win32typing.PyIMessage, flags, /): ...
def WrapCompressedRTFStream(stream: _win32typing.PyIStream, flags, /) -> _win32typing.PyIStream: ...
def WrapCompressedRTFStreamEx() -> tuple[_win32typing.PyIStream, Incomplete]: ...
def OpenIMsgSession(): ...
def CloseIMsgSession() -> None: ...
@@ -27,16 +28,17 @@ def OpenIMsgOnIStg(
callback: Incomplete | None = ...,
callbackData: int = ...,
flags: int = ...,
/,
) -> _win32typing.PyIMessage: ...
def RTFStreamToHTML(The_stream_to_read_the_uncompressed_RTF_from: _win32typing.PyIStream) -> None: ...
def OpenStreamOnFile(filename: str, flags: int = ..., prefix: str | None = ...) -> _win32typing.PyIStream: ...
def OpenStreamOnFileW(filename, flags: int = ..., prefix: Incomplete | None = ...) -> _win32typing.PyIStream: ...
def HrGetOneProp(prop: _win32typing.PyIMAPIProp, propTag): ...
def HrSetOneProp(prop: _win32typing.PyIMAPIProp, propValue: _win32typing.PySPropValue): ...
def HrAllocAdviseSink(callback, context): ...
def HrThisThreadAdviseSink(_object): ...
def HrDispatchNotifications(*args, **kwargs): ... # incomplete
def MAPIUIDFromBinary(*args, **kwargs): ... # incomplete
def RTFStreamToHTML(The_stream_to_read_the_uncompressed_RTF_from: _win32typing.PyIStream, /) -> None: ...
def OpenStreamOnFile(filename: str, flags: int = ..., prefix: str | None = ..., /) -> _win32typing.PyIStream: ...
def OpenStreamOnFileW(filename, flags: int = ..., prefix: Incomplete | None = ..., /) -> _win32typing.PyIStream: ...
def HrGetOneProp(prop: _win32typing.PyIMAPIProp, propTag, /): ...
def HrSetOneProp(prop: _win32typing.PyIMAPIProp, propValue: _win32typing.PySPropValue, /): ...
def HrAllocAdviseSink(callback, context, /): ...
def HrThisThreadAdviseSink(_object, /): ...
def HrDispatchNotifications(*args): ... # incomplete
def MAPIUIDFromBinary(*args): ... # incomplete
AB_NO_DIALOG: int
ATTACH_BY_REF_ONLY: int

View File

@@ -6,31 +6,31 @@ from win32.lib.pywintypes import com_error
error: TypeAlias = com_error # noqa: Y042
def PSGetItemPropertyHandler(
Item: _win32typing.PyIShellItem, riid: _win32typing.PyIID, ReadWrite: int
Item: _win32typing.PyIShellItem, riid: _win32typing.PyIID, ReadWrite: int, /
) -> _win32typing.PyIPropertyStore: ...
def PSGetPropertyDescription(
Key: _win32typing.PyPROPERTYKEY, riid: _win32typing.PyIID
Key: _win32typing.PyPROPERTYKEY, riid: _win32typing.PyIID, /
) -> _win32typing.PyIPropertyDescription: ...
def PSGetPropertySystem(riid: _win32typing.PyIID) -> _win32typing.PyIPropertySystem: ...
def PSGetNameFromPropertyKey(Key: _win32typing.PyPROPERTYKEY) -> str: ...
def PSGetPropertyKeyFromName(Name) -> _win32typing.PyPROPERTYKEY: ...
def PSRegisterPropertySchema(filename) -> None: ...
def PSUnregisterPropertySchema(filename) -> None: ...
def PSGetPropertySystem(riid: _win32typing.PyIID, /) -> _win32typing.PyIPropertySystem: ...
def PSGetNameFromPropertyKey(Key: _win32typing.PyPROPERTYKEY, /) -> str: ...
def PSGetPropertyKeyFromName(Name, /) -> _win32typing.PyPROPERTYKEY: ...
def PSRegisterPropertySchema(filename, /) -> None: ...
def PSUnregisterPropertySchema(filename, /) -> None: ...
def SHGetPropertyStoreFromParsingName(
Path: str, Flags, riid: _win32typing.PyIID, BindCtx: _win32typing.PyIBindCtx | None = ...
Path: str, Flags, riid: _win32typing.PyIID, BindCtx: _win32typing.PyIBindCtx | None = ..., /
) -> _win32typing.PyIPropertyStore: ...
def StgSerializePropVariant(propvar: _win32typing.PyPROPVARIANT): ...
def StgDeserializePropVariant(prop) -> _win32typing.PyPROPVARIANT: ...
def PSCreateMemoryPropertyStore(riid: _win32typing.PyIID) -> _win32typing.PyIPropertyStore: ...
def StgSerializePropVariant(propvar: _win32typing.PyPROPVARIANT, /): ...
def StgDeserializePropVariant(prop, /) -> _win32typing.PyPROPVARIANT: ...
def PSCreateMemoryPropertyStore(riid: _win32typing.PyIID, /) -> _win32typing.PyIPropertyStore: ...
def PSCreatePropertyStoreFromPropertySetStorage(
pss: _win32typing.PyIPropertySetStorage, Mode, riid: _win32typing.PyIID
pss: _win32typing.PyIPropertySetStorage, Mode, riid: _win32typing.PyIID, /
) -> _win32typing.PyIPropertyStore: ...
def PSLookupPropertyHandlerCLSID(FilePath) -> _win32typing.PyIID: ...
def SHGetPropertyStoreForWindow(hwnd: int, riid: _win32typing.PyIID) -> _win32typing.PyIPropertyStore: ...
def PSGetPropertyFromPropertyStorage(ps, key: _win32typing.PyPROPERTYKEY) -> _win32typing.PyPROPVARIANT: ...
def PSGetNamedPropertyFromPropertyStorage(ps, name) -> _win32typing.PyPROPVARIANT: ...
def PSLookupPropertyHandlerCLSID(FilePath, /) -> _win32typing.PyIID: ...
def SHGetPropertyStoreForWindow(hwnd: int, riid: _win32typing.PyIID, /) -> _win32typing.PyIPropertyStore: ...
def PSGetPropertyFromPropertyStorage(ps, key: _win32typing.PyPROPERTYKEY, /) -> _win32typing.PyPROPVARIANT: ...
def PSGetNamedPropertyFromPropertyStorage(ps, name, /) -> _win32typing.PyPROPVARIANT: ...
def PSCreateSimplePropertyChange(
flags, key: _win32typing.PyPROPERTYKEY, val: _win32typing.PyPROPVARIANT, riid: _win32typing.PyIID
flags, key: _win32typing.PyPROPERTYKEY, val: _win32typing.PyPROPVARIANT, riid: _win32typing.PyIID, /
) -> _win32typing.PyIPropertyChange: ...
def PSCreatePropertyChangeArray() -> _win32typing.PyIPropertyChangeArray: ...
def SHSetDefaultProperties(
@@ -38,6 +38,7 @@ def SHSetDefaultProperties(
Item: _win32typing.PyIShellItem,
FileOpFlags: int = ...,
Sink: _win32typing.PyGFileOperationProgressSink | None = ...,
/,
) -> None: ...
IID_IInitializeWithFile: _win32typing.PyIID

View File

@@ -8,26 +8,26 @@ error: TypeAlias = com_error # noqa: Y042
def AssocCreate() -> _win32typing.PyIQueryAssociations: ...
def AssocCreateForClasses() -> _win32typing.PyIUnknown: ...
def DragQueryFile(hglobal: int, index) -> str: ...
def DragQueryFileW(hglobal: int, index) -> str: ...
def DragQueryPoint(hglobal: int) -> tuple[Incomplete, Incomplete, Incomplete]: ...
def DragQueryFile(hglobal: int, index, /) -> str: ...
def DragQueryFileW(hglobal: int, index, /) -> str: ...
def DragQueryPoint(hglobal: int, /) -> tuple[Incomplete, Incomplete, Incomplete]: ...
def IsUserAnAdmin() -> bool: ...
def SHCreateDataObject(
parent, children: list[Incomplete], do_inner: _win32typing.PyIDataObject, iid: _win32typing.PyIID
parent, children: list[Incomplete], do_inner: _win32typing.PyIDataObject, iid: _win32typing.PyIID, /
) -> _win32typing.PyIUnknown: ...
def SHCreateDefaultContextMenu(dcm, iid: _win32typing.PyIID) -> _win32typing.PyIUnknown: ...
def SHCreateDefaultContextMenu(dcm, iid: _win32typing.PyIID, /) -> _win32typing.PyIUnknown: ...
def SHCreateDefaultExtractIcon() -> _win32typing.PyIDefaultExtractIconInit: ...
def SHCreateShellFolderView(
sf: _win32typing.PyIShellFolder, viewOuter: _win32typing.PyIShellView | None = ..., callbacks: Incomplete | None = ...
sf: _win32typing.PyIShellFolder, viewOuter: _win32typing.PyIShellView | None = ..., callbacks: Incomplete | None = ..., /
) -> _win32typing.PyIShellView: ...
def SHCreateShellItemArray(
parent: _win32typing.PyIDL, sf: _win32typing.PyIShellFolder, children: list[_win32typing.PyIDL]
parent: _win32typing.PyIDL, sf: _win32typing.PyIShellFolder, children: list[_win32typing.PyIDL], /
) -> _win32typing.PyIShellItemArray: ...
def SHCreateShellItemArrayFromDataObject(
do: _win32typing.PyIDataObject, iid: _win32typing.PyIID
do: _win32typing.PyIDataObject, iid: _win32typing.PyIID, /
) -> _win32typing.PyIShellItemArray: ...
def SHCreateShellItemArrayFromShellItem(
si: _win32typing.PyIShellItem, riid: _win32typing.PyIID
si: _win32typing.PyIShellItem, riid: _win32typing.PyIID, /
) -> _win32typing.PyIShellItemArray: ...
def SHBrowseForFolder(
hwndOwner: int | None = ...,
@@ -36,78 +36,77 @@ def SHBrowseForFolder(
flags: int = ...,
callback: Incomplete | None = ...,
callback_data: Incomplete | None = ...,
/,
) -> tuple[_win32typing.PyIDL, Incomplete, Incomplete]: ...
def SHGetFileInfo(
name: _win32typing.PyIDL | str, dwFileAttributes, uFlags, infoAttrs: int = ...
name: _win32typing.PyIDL | str, dwFileAttributes, uFlags, infoAttrs: int = ..., /
) -> tuple[Incomplete, _win32typing.SHFILEINFO]: ...
def SHGetFolderPath(hwndOwner: int, nFolder, handle: int, flags) -> str: ...
def SHSetFolderPath(csidl, Path, hToken: int | None = ...) -> None: ...
def SHGetFolderLocation(hwndOwner: int, nFolder, hToken: int | None = ..., reserved=...) -> _win32typing.PyIDL: ...
def SHGetSpecialFolderPath(hwndOwner: int, nFolder, bCreate: int = ...) -> str: ...
def SHGetSpecialFolderLocation(hwndOwner: int, nFolder) -> _win32typing.PyIDL: ...
def SHAddToRecentDocs(Flags, data) -> None: ...
def SHEmptyRecycleBin(hwnd: int, path: str, flags) -> None: ...
def SHQueryRecycleBin(RootPath: str | None = ...) -> tuple[Incomplete, Incomplete]: ...
def SHGetFolderPath(hwndOwner: int, nFolder, handle: int, flags, /) -> str: ...
def SHSetFolderPath(csidl, Path, hToken: int | None = ..., /) -> None: ...
def SHGetFolderLocation(hwndOwner: int, nFolder, hToken: int | None = ..., reserved=..., /) -> _win32typing.PyIDL: ...
def SHGetSpecialFolderPath(hwndOwner: int, nFolder, bCreate: int = ..., /) -> str: ...
def SHGetSpecialFolderLocation(hwndOwner: int, nFolder, /) -> _win32typing.PyIDL: ...
def SHAddToRecentDocs(Flags, data, /) -> None: ...
def SHEmptyRecycleBin(hwnd: int, path: str, flags, /) -> None: ...
def SHQueryRecycleBin(RootPath: str | None = ..., /) -> tuple[Incomplete, Incomplete]: ...
def SHGetDesktopFolder() -> _win32typing.PyIShellFolder: ...
def SHUpdateImage(HashItem: str, Index, Flags, ImageIndex) -> None: ...
def SHChangeNotify(EventId, Flags, Item1, Item2) -> None: ...
def SHChangeNotifyRegister(hwnd: int, sources, events, msg): ...
def SHChangeNotifyDeregister(_id) -> None: ...
def SHCreateItemFromParsingName(name, ctx: _win32typing.PyIBindCtx, riid: _win32typing.PyIID) -> _win32typing.PyIShellItem: ...
def SHUpdateImage(HashItem: str, Index, Flags, ImageIndex, /) -> None: ...
def SHChangeNotify(EventId, Flags, Item1, Item2, /) -> None: ...
def SHChangeNotifyRegister(hwnd: int, sources, events, msg, /): ...
def SHChangeNotifyDeregister(_id, /) -> None: ...
def SHCreateItemFromParsingName(name, ctx: _win32typing.PyIBindCtx, riid: _win32typing.PyIID, /) -> _win32typing.PyIShellItem: ...
def SHCreateItemFromRelativeName(
Parent: _win32typing.PyIShellItem, Name, ctx: _win32typing.PyIBindCtx, riid: _win32typing.PyIID
Parent: _win32typing.PyIShellItem, Name, ctx: _win32typing.PyIBindCtx, riid: _win32typing.PyIID, /
) -> _win32typing.PyIShellItem: ...
def SHCreateItemInKnownFolder(
FolderId: _win32typing.PyIID, Flags, Name, riid: _win32typing.PyIID
FolderId: _win32typing.PyIID, Flags, Name, riid: _win32typing.PyIID, /
) -> _win32typing.PyIShellItem: ...
def SHCreateItemWithParent(
Parent: _win32typing.PyIDL, sfParent: _win32typing.PyIShellFolder, child: _win32typing.PyIDL, riid: _win32typing.PyIID
Parent: _win32typing.PyIDL, sfParent: _win32typing.PyIShellFolder, child: _win32typing.PyIDL, riid: _win32typing.PyIID, /
) -> _win32typing.PyIShellItem: ...
def SHGetInstanceExplorer() -> _win32typing.PyIUnknown: ...
def SHFileOperation(operation: _win32typing.SHFILEOPSTRUCT) -> tuple[Incomplete, Incomplete]: ...
def StringAsCIDA(pidl: str) -> tuple[_win32typing.PyIDL, Incomplete]: ...
def CIDAAsString(pidl: str) -> str: ...
def StringAsPIDL(pidl: str) -> _win32typing.PyIDL: ...
def AddressAsPIDL(address) -> _win32typing.PyIDL: ...
def PIDLAsString(pidl: _win32typing.PyIDL) -> str: ...
def SHGetSettings(mask: int = ...): ...
def FILEGROUPDESCRIPTORAsString(descriptors: list[Incomplete], arg) -> str: ...
def StringAsFILEGROUPDESCRIPTOR(buf, make_unicode: int = ...) -> list[Incomplete]: ...
def SHFileOperation(operation: _win32typing.SHFILEOPSTRUCT, /) -> tuple[Incomplete, Incomplete]: ...
def StringAsCIDA(pidl: str, /) -> tuple[_win32typing.PyIDL, Incomplete]: ...
def CIDAAsString(pidl: str, /) -> str: ...
def StringAsPIDL(pidl: str, /) -> _win32typing.PyIDL: ...
def AddressAsPIDL(address, /) -> _win32typing.PyIDL: ...
def PIDLAsString(pidl: _win32typing.PyIDL, /) -> str: ...
def SHGetSettings(mask: int = ..., /): ...
def FILEGROUPDESCRIPTORAsString(descriptors: list[Incomplete], arg, /) -> str: ...
def StringAsFILEGROUPDESCRIPTOR(buf, make_unicode: int = ..., /) -> list[Incomplete]: ...
def ShellExecuteEx(
lpVerb: str,
lpFile: str,
lpParameters: str,
lpDirectory: str,
lpIDlist: _win32typing.PyIDL,
obClass: str,
hkeyClass,
dwHotKey,
hIcon: int,
hMonitor: int,
fMask: int = ...,
hwnd: int = ...,
lpVerb: str = ...,
lpFile: str = ...,
lpParameters: str = ...,
lpDirectory: str = ...,
nShow: int = ...,
lpIDlist: _win32typing.PyIDL = ...,
lpClass: str = ...,
hkeyClass=...,
dwHotKey=...,
hIcon: int = ...,
hMonitor: int = ...,
): ...
def SHGetViewStatePropertyBag(
pidl: _win32typing.PyIDL, BagName: str, Flags, riid: _win32typing.PyIID
pidl: _win32typing.PyIDL, BagName: str, Flags, riid: _win32typing.PyIID, /
) -> _win32typing.PyIPropertyBag: ...
def SHILCreateFromPath(Path: str, Flags) -> tuple[_win32typing.PyIDL, Incomplete]: ...
def SHILCreateFromPath(Path: str, Flags, /) -> tuple[_win32typing.PyIDL, Incomplete]: ...
def SHCreateShellItem(
pidlParent: _win32typing.PyIDL, sfParent: _win32typing.PyIShellFolder, Child: _win32typing.PyIDL
pidlParent: _win32typing.PyIDL, sfParent: _win32typing.PyIShellFolder, Child: _win32typing.PyIDL, /
) -> _win32typing.PyIShellItem: ...
def SHOpenFolderAndSelectItems(Folder: _win32typing.PyIDL, Items: tuple[_win32typing.PyIDL, ...], Flags=...) -> None: ...
def SHCreateStreamOnFileEx(File, Mode, Attributes, Create, Template: Incomplete | None = ...) -> _win32typing.PyIStream: ...
def SetCurrentProcessExplicitAppUserModelID(__AppID: str) -> None: ...
def SetCurrentProcessExplicitAppUserModelID(AppID: str, /) -> None: ...
def GetCurrentProcessExplicitAppUserModelID() -> str: ...
def SHParseDisplayName(
Name, Attributes, BindCtx: _win32typing.PyIBindCtx | None = ...
) -> tuple[_win32typing.PyIDL, Incomplete]: ...
def SHCreateItemFromIDList(*args, **kwargs): ... # incomplete
def SHCreateShellItemArrayFromIDLists(*args, **kwargs): ... # incomplete
def SHGetIDListFromObject(*args, **kwargs): ... # incomplete
def SHGetNameFromIDList(*args, **kwargs): ... # incomplete
def SHGetPathFromIDList(*args, **kwargs): ... # incomplete
def SHGetPathFromIDListW(*args, **kwargs): ... # incomplete
def SHParseDisplayName(Name, Attributes, BindCtx: _win32typing.PyIBindCtx | None = ...) -> tuple[list[bytes], int]: ...
def SHCreateItemFromIDList(*args): ... # incomplete
def SHCreateShellItemArrayFromIDLists(*args): ... # incomplete
def SHGetIDListFromObject(*args): ... # incomplete
def SHGetNameFromIDList(*args): ... # incomplete
def SHGetPathFromIDList(*args): ... # incomplete
def SHGetPathFromIDListW(*args): ... # incomplete
BHID_AssociationArray: _win32typing.PyIID
BHID_DataObject: _win32typing.PyIID
@@ -433,4 +432,4 @@ VID_ThumbStrip: _win32typing.PyIID
VID_Thumbnails: _win32typing.PyIID
VID_Tile: _win32typing.PyIID
def SHGetKnownFolderPath(*args, **kwargs): ... # incomplete
def SHGetKnownFolderPath(*args): ... # incomplete