powcpropsys.propstore module#

プロパティストア。

class powcpropsys.propstore.GetPropertyStoreFlag(*values)#

ベースクラス: IntFlag

GETPROPERTYSTOREFLAGS

BEST_EFFORT = 64#
DEFAULT = 0#
DELAY_CREATION = 32#
EXTRINSIC_PROPERTIES = 512#
EXTRINSIC_PROPERTIES_ONLY = 1024#
FAST_PROPERTIES_ONLY = 8#
HANDLER_PROPERTIES_ONLY = 1#
NO_OPLOCK = 128#
OPEN_SLOW_ITEM = 16#
PREFER_QUERY_PROPERTIES = 256#
READ_WRITE = 2#
TEMPORARY = 4#
VOLATILE_PROPERTIES = 2048#
VOLATILE_PROPERTIES_ONLY = 4096#
class powcpropsys.propstore.IPropertyStore#

ベースクラス: IUnknown

Commit = <COM method offset 7: WinFunctionType>#
GetAt = <COM method offset 4: WinFunctionType>#
GetCount = <COM method offset 3: WinFunctionType>#
GetValue = <COM method offset 5: WinFunctionType>#
SetValue = <COM method offset 6: WinFunctionType>#
class powcpropsys.propstore.PropertyStore(o: Any)#

ベースクラス: object

プロパティストア。IPropertyStoreインターフェイスのラッパーです。

commit() None#
commit_nothrow() ComResult[None]#
property count: int#
property count_nothrow: ComResult[int]#
static createonmem() PropertyStore#
static createonmem_nothrow() ComResult[PropertyStore]#

メモリ内プロパティストアを作成します。

このプロパティストアは以下のインターフェイスを実装しています。 IPropertyStore、INamedPropertyStore、IPropertyStoreCache、 IPersistStream、IPropertyBag、IPersistSerializedPropStorage

get_key_at(index: int) PropertyKey#
get_key_at_nothrow(index: int) ComResult[PropertyKey]#
get_value(key: PropertyKey) PropVariant#
get_value_nothrow(key: PropertyKey) ComResult[PropVariant]#
property itemdict: OrderedDict[PropertyKey, PropVariant]#
property items: tuple[tuple[PropertyKey, PropVariant], ...]#
iter_items() Iterator[tuple[PropertyKey, PropVariant]]#
iter_items_in_keys(keys: Iterable[PropertyKey]) Iterable[tuple[PropertyKey, PropVariant]]#

キーに対応する項目のイテレーターを返します。 返される項目にはプロパティストア自体に含まれるキーでは取得できない項目も含まれます。

iter_items_in_propsystem(propsys: PropertySystem | None = None) Iterable[tuple[PropertyKey, PropVariant]]#

プロパティシステムに登録されたキーに対応する項目のイテレーターを返します。 返される項目にはプロパティストア自体に含まれるキーでは取得できない項目も含まれます。

iter_keys() Iterator[PropertyKey]#
iter_keys_in_keys(keys: Iterable[PropertyKey]) Iterator[PropertyKey]#

キーに対応するキーのイテレーターを返します。 返されるキーにはプロパティストア自体からは列挙できないキーも含まれます。

iter_keys_in_propsystem(propsys: PropertySystem | None = None) Iterator[PropertyKey]#

プロパティシステムに登録されたキーでプロパティストアでも有効なキーのイテレーターを返します。 返されるキーにはプロパティストア自体からは列挙できないキーも含まれます。

property keys: tuple[PropertyKey, ...]#
set_value(key: PropertyKey, value: PropVariant) None#
set_value_nothrow(key: PropertyKey, value: PropVariant) ComResult[None]#
property wrapped_obj: c_void_p#