powcshell.shellitemarray module#
シェルアイテム配列。
主なクラスは ShellItemArray です。
- class powcshell.shellitemarray.IShellItemArray#
ベースクラス:
IUnknown- BindToHandler = <COM method offset 3: WinFunctionType>#
- EnumItems = <COM method offset 9: WinFunctionType>#
- GetAttributes = <COM method offset 6: WinFunctionType>#
- GetCount = <COM method offset 7: WinFunctionType>#
- GetItemAt = <COM method offset 8: WinFunctionType>#
- GetPropertyDescriptionList = <COM method offset 5: WinFunctionType>#
- GetPropertyStore = <COM method offset 4: WinFunctionType>#
- class powcshell.shellitemarray.ShellItemArray(o: Any)#
ベースクラス:
objectシェル項目配列。IShellItemArrayインターフェイスのラッパーです。
- property attrs_and: int#
項目属性の論理積を返します。
- property attrs_or: int#
項目属性の論理和を返します。
- bind_tohandler(bhid: GUID, type: type[TIUnknown])#
バインドハンドラIDで指定されたハンドラを取得します。
- bind_tohandler_nothrow(bhid: GUID, type: type[TIUnknown])#
バインドハンドラIDで指定されたハンドラを取得します。
- static create(parent_pidl: int, child_pidls: Sequence[int]) ShellItemArray#
- static create_fromclipboard() ShellItemArray#
クリップボードからシェル項目配列ShellItemArrayを作成して返します。
サンプル
>>> tuple(ShellItemArray.create_fromclipboard().iter_items())
- static create_fromclipboard_nothrow() ComResult[ShellItemArray]#
- static create_fromdataobj(dataobj: c_void_p) ShellItemArray#
- static create_fromdataobj_nothrow(dataobj: c_void_p) ComResult[ShellItemArray]#
- static create_fromidlists(pidls: Sequence[int]) ShellItemArray#
- static create_fromidlists_nothrow(pidls: Sequence[int]) ComResult[ShellItemArray]#
- static create_fromitem(item: ShellItem) ShellItemArray#
- static create_fromitem_nothrow(item: ShellItem) ComResult[ShellItemArray]#
- static create_nothrow(parent_pidl: int, child_pidls: Sequence[int]) ComResult[ShellItemArray]#
- enum_items() EnumShellItems#
列挙用のIEnumShellItemsインターフェイスを返します。
- enum_items_nothrow() ComResult[EnumShellItems]#
列挙用のIEnumShellItemsインターフェイスを返します。
- get_attrs(flags: ShellItemAttributeFlag, mask: int = 4294967295) int#
項目の属性を指定した方法で合成して返します。
- get_attrs_nothrow(flags: ShellItemAttributeFlag, mask: int = 4294967295) ComResult[int]#
項目の属性を指定した方法で合成して返します。
- get_propdescs(key: PropertyKey) PropertyDescriptionList#
プロパティの説明を取得します。
- get_propdescs_nothrow(key: PropertyKey) ComResult[PropertyDescriptionList]#
プロパティの説明を取得します。
- get_propstore(flags: GetPropertyStoreFlag) PropertyStore#
プロパティストアを取得します。
- get_propstore_nothrow(flags: GetPropertyStoreFlag) ComResult[PropertyStore]#
プロパティストアを取得します。
- getitem_at(index: int) ShellItem2#
指定した位置の項目を返します。
- getitem_at_nothrow(index: int) ComResult[ShellItem2]#
指定した位置の項目を返します。
- static getitems_fromclipboard() tuple[ShellItem2, ...]#
クリップボードからシェル項目配列tuple[ShellItem2, ...]を作成して返します。
サンプル
>>> ShellItemArray.getitems_fromclipboard()
- static getitems_fromclipboard_nothrow() ComResult[tuple[ShellItem2, ...]]#
- static getitems_v1_fromclipboard() tuple[ShellItem, ...]#
クリップボードからシェル項目配列tuple[ShellItem2, ...]を作成して返します。
サンプル
>>> ShellItemArray.getitems_v1_fromclipboard()
- iter_items() Iterator[ShellItem2]#
項目のイテレータを返します。
- property wrapped_obj: c_void_p#