powc.propbag module#

プロパティバッグ。主なクラスは PropertyBag2 です。

class powc.propbag.IPropertyBag2#

ベースクラス: IUnknown

CountProperties = <COM method offset 5: WinFunctionType>#
GetPropertyInfo = <COM method offset 6: WinFunctionType>#
LoadObject = <COM method offset 7: WinFunctionType>#
Read = <COM method offset 3: WinFunctionType>#
Write = <COM method offset 4: WinFunctionType>#
class powc.propbag.PropertyBag2(o: Any)#

ベースクラス: object

IPropertyBag2インターフェイスのラッパーです。

get_propinfos(index: int, length: int) tuple[int, tuple[PropertyBag2Entry, ...]]#
get_propinfos_nothrow(index: int, length: int) ComResult[tuple[int, tuple[PropertyBag2Entry, ...]]]#
loadobj(propname: str, hint: int, outer: POINTER(IUnknown) | None = None, errlog: ErrorLog | None = None) None#
loadobj_nothrow(propname: str, hint: int, outer: POINTER(IUnknown) | None = None, errlog: ErrorLog | None = None) ComResult[None]#
property propcount: int#
property propcount_nothrow: ComResult[int]#
read(props: Sequence[PropertyBag2Entry], errlog: ErrorLog | None = None) tuple[tuple[Variant, ...], tuple[int, ...]]#
read_nothrow(props: Sequence[PropertyBag2Entry], errlog: ErrorLog | None = None) ComResult[tuple[tuple[Variant, ...], tuple[int, ...]]]#
property wrapped_obj: c_void_p#
write(props: Sequence[PropertyBag2Entry], values: Sequence[Variant]) None#
write_nothrow(props: Sequence[PropertyBag2Entry], values: Sequence[Variant]) ComResult[None]#
class powc.propbag.PropertyBag2Entry#

ベースクラス: Structure

PROPBAG2

cftype#

Structure/Union member

clsid#

Structure/Union member

hint#

Structure/Union member

name#

Structure/Union member

type#

Structure/Union member

property vt: VARENUM#
class powc.propbag.PropertyBag2Type(*values)#

ベースクラス: IntEnum

tagPROPBAG2_TYPE

DATA = 1#
MONIKER = 6#
OBJECT = 3#
STORAGE = 5#
STREAM = 4#
UNDEFINED = 0#
URL = 2#