powc.comobj module

目次

powc.comobj module#

COMオブジェクトの基本操作クラス。

class powc.comobj.BindCtx(o: Any)#

ベースクラス: object

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

property bindoptions: BindOptions3#
property bindoptions1: BindOptions#
property bindoptions1_nothrow: ComResult[BindOptions]#
property bindoptions2: BindOptions2#
property bindoptions2_nothrow: ComResult[BindOptions2]#
property bindoptions3: BindOptions3#
property bindoptions3_nothrow: ComResult[BindOptions3]#
property bindoptions_nothrow: ComResult[BindOptions3]#
static create() BindCtx#
static create_nothrow() ComResult[BindCtx]#
get_enumobjectparams() ComStringEnumerator#
get_enumobjectparams_nothrow() ComResult[ComStringEnumerator]#
get_objectparam(key: str, t: type[T]) T#
get_objectparam_nothrow(key: str, t: type[T]) ComResult#
register_objectbound(obj: IUnknownWrapper) None#
register_objectbound_nothrow(obj: IUnknownWrapper) ComResult[None]#
register_objectparam(key: str, obj: IUnknownWrapper) None#
register_objectparam_nothrow(key: str, obj: IUnknownWrapper) ComResult[None]#
release_boundobjects() None#
release_boundobjects_nothrow() ComResult[None]#
revoke_objectbound(obj: IUnknownWrapper) None#
revoke_objectbound_nothrow(obj: IUnknownWrapper) ComResult[None]#
revoke_objectparam(key: str) None#
revoke_objectparam_nothrow(key: str) ComResult[None]#
property rot: RunningObjectTable#
property rot_nothrow: ComResult[RunningObjectTable]#
set_bindoptions1_nothrow(options: BindOptions) ComResult[None]#
set_bindoptions2_nothrow(options: BindOptions2) ComResult[None]#
set_bindoptions3_nothrow(options: BindOptions3) ComResult[None]#
property wrapped_obj: c_void_p#
class powc.comobj.BindFlag(*values)#

ベースクラス: IntFlag

BIND_FLAGS

JUST_TEST_EXISTENCE = 2#
MAY_BOTHER_USER = 1#
class powc.comobj.BindOptions#

ベースクラス: Structure

BIND_OPTS構造体のラッパー。

cb_struct#

Structure/Union member

flags#

Structure/Union member

mode#

Structure/Union member

tickcount_deadline#

Structure/Union member

class powc.comobj.BindOptions2#

ベースクラス: BindOptions

class_context#

Structure/Union member

locale#

Structure/Union member

server_info#

Structure/Union member

track_flags#

Structure/Union member

class powc.comobj.BindOptions3#

ベースクラス: BindOptions2

window_handle#

Structure/Union member

class powc.comobj.ComStringEnumerator(o: Any)#

ベースクラス: object

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

clone() ComStringEnumerator#
clone_nothrow() ComResult[ComStringEnumerator]#
property wrapped_obj: c_void_p#
class powc.comobj.IBindCtx#

ベースクラス: IUnknown

IBindCtxインターフェイスのラッパー。

EnumObjectParam = <COM method offset 11: WinFunctionType>#
GetBindOptions = <COM method offset 7: WinFunctionType>#
GetObjectParam = <COM method offset 10: WinFunctionType>#
GetRunningObjectTable = <COM method offset 8: WinFunctionType>#
RegisterObjectBound = <COM method offset 3: WinFunctionType>#
RegisterObjectParam = <COM method offset 9: WinFunctionType>#
ReleaseBoundObjects = <COM method offset 5: WinFunctionType>#
RevokeObjectBound = <COM method offset 4: WinFunctionType>#
RevokeObjectParam = <COM method offset 12: WinFunctionType>#
SetBindOptions = <COM method offset 6: WinFunctionType>#
class powc.comobj.IEnumMoniker#

ベースクラス: IUnknown

Clone = <COM method offset 6: WinFunctionType>#
Next = <COM method offset 3: WinFunctionType>#
Reset = <COM method offset 5: WinFunctionType>#
Skip = <COM method offset 4: WinFunctionType>#
class powc.comobj.IEnumString#

ベースクラス: IUnknown

IEnumStringインターフェイス。

Clone = <COM method offset 6: WinFunctionType>#
Next = <COM method offset 3: WinFunctionType>#
Reset = <COM method offset 5: WinFunctionType>#
Skip = <COM method offset 4: WinFunctionType>#
class powc.comobj.IEnumUnknown#

ベースクラス: IUnknown

Clone = <COM method offset 6: WinFunctionType>#
Next = <COM method offset 3: WinFunctionType>#
Reset = <COM method offset 5: WinFunctionType>#
Skip = <COM method offset 4: WinFunctionType>#
class powc.comobj.IMoniker#

ベースクラス: IPersistStream

BindToObject = <COM method offset 8: WinFunctionType>#
BindToStorage = <COM method offset 9: WinFunctionType>#
CommonPrefixWith = <COM method offset 18: WinFunctionType>#
ComposeWith = <COM method offset 11: WinFunctionType>#
Enum = <COM method offset 12: WinFunctionType>#
GetDisplayName = <COM method offset 20: WinFunctionType>#
GetTimeOfLastChange = <COM method offset 16: WinFunctionType>#
Hash = <COM method offset 14: WinFunctionType>#
Inverse = <COM method offset 17: WinFunctionType>#
IsEqual = <COM method offset 13: WinFunctionType>#
IsRunning = <COM method offset 15: WinFunctionType>#
IsSystemMoniker = <COM method offset 22: WinFunctionType>#
ParseDisplayName = <COM method offset 21: WinFunctionType>#
Reduce = <COM method offset 10: WinFunctionType>#
RelativePathTo = <COM method offset 19: WinFunctionType>#
class powc.comobj.IRunningObjectTable#

ベースクラス: IUnknown

EnumRunning = <COM method offset 9: WinFunctionType>#
GetObject = <COM method offset 6: WinFunctionType>#
GetTimeOfLastChange = <COM method offset 8: WinFunctionType>#
IsRunning = <COM method offset 5: WinFunctionType>#
NoteChangeTime = <COM method offset 7: WinFunctionType>#
Register = <COM method offset 3: WinFunctionType>#
Revoke = <COM method offset 4: WinFunctionType>#
class powc.comobj.IUnknownEnumerator(o: Any)#

ベースクラス: object

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

clone() IUnknownEnumerator#
clone_nothrow() ComResult[IUnknownEnumerator]#
property wrapped_obj: c_void_p#
class powc.comobj.Moniker(o: Any)#

ベースクラス: object

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

property clsid: GUID#
property clsid_nothrow: ComResult[GUID]#
static create_classmoniker(clsid: GUID) Moniker#
static create_classmoniker_nothrow(clsid: GUID) ComResult[Moniker]#
static create_file(pathname: str) Moniker#
static create_file_nothrow(pathname: str) ComResult[Moniker]#
static create_genericcomposite(first: Moniker, rest: Moniker) Moniker#
static create_genericcomposite_nothrow(first: Moniker, rest: Moniker) ComResult[Moniker]#
static create_item(delimiter: str, item: str) Moniker#
static create_item_nothrow(delimiter: str, item: str) ComResult[Moniker]#
static create_objref(wrapper: IUnknownWrapper) Moniker#
static create_objref_nothrow(wrapper: IUnknownWrapper) ComResult[Moniker]#
static create_pointer(wrapper: IUnknownWrapper) Moniker#
static create_pointer_nothrow(wrapper: IUnknownWrapper) ComResult[Moniker]#
property displayname: str#
property displayname_nothrow: ComResult[str]#
property enum_backward: MonikerEnumerator#
property enum_backward_nothrow: ComResult[MonikerEnumerator]#
property enum_forward: MonikerEnumerator#
property enum_forward_nothrow: ComResult[MonikerEnumerator]#
get_common_prefix_with(other: Moniker) Moniker#
get_common_prefix_with_nothrow(other: Moniker) ComResult[Moniker]#
get_displayname(bc: BindCtx, left: Moniker | None = None) str#
get_displayname_nothrow(bc: BindCtx, left: Moniker | None = None) ComResult[str]#
get_relpath_to(other: Moniker) Moniker#
get_relpath_to_nothrow(other: Moniker) ComResult[Moniker]#
property hash: int#
property hash_nothrow: ComResult[int]#
inversed() Moniker#
inversed_nothrow() ComResult[Moniker]#
property is_dirty: bool#
property is_dirty_nothrow: ComResult[bool]#
is_equal(other: Moniker) bool#
is_equal_nothrow(other: Moniker) ComResult[bool]#
property is_sysmoniker: MonikerSystem#
property is_sysmoniker_nothrow: ComResult[MonikerSystem]#
load(stream: ComStream) None#
load_nothrow(stream: ComStream) ComResult[None]#
parse_displayname(displayname: str, left: Moniker | None = None, bc: BindCtx | None = None) Moniker#
parse_displayname_nothrow(displayname: str, left: Moniker | None = None, bc: BindCtx | None = None) ComResult[Moniker]#
save(stream: ComStream, clears_dirty: bool) None#
save_nothrow(stream: ComStream, clears_dirty: bool) ComResult[None]#
property sizemax: int#
property sizemax_nothrow: ComResult[int]#
property wrapped_obj: c_void_p#
class powc.comobj.MonikerEnumerator(o: Any)#

ベースクラス: object

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

clone() MonikerEnumerator#
clone_nothrow() ComResult[MonikerEnumerator]#
property wrapped_obj: c_void_p#
class powc.comobj.MonikerReduce(*values)#

ベースクラス: IntFlag

MKREDUCE

ALL = 0#
ONE = 196608#
THROUGHUSER = 65536#
TOUSER = 131072#
class powc.comobj.MonikerSystem(*values)#

ベースクラス: IntEnum

MKSYS

ANTI_MONIKER = 3#
CLASS_MONIKER = 7#
FILE_MONIKER = 2#
GENERIC_COMPOSITE = 1#
ITEM_MONIKER = 4#
LUA_MONIKER = 10#
NONE = 0#
OBJREF_MONIKER = 8#
POINTER_MONIKER = 5#
SESSION_MONIKER = 9#
class powc.comobj.RunningObjectTable(o: Any)#

ベースクラス: object

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

static create() RunningObjectTable#
static create_nothrow() ComResult[RunningObjectTable]#
property enumrunning: MonikerEnumerator#
property enumrunning_nothrow: ComResult[MonikerEnumerator]#
get_object_raw(objectname: Moniker)#
get_object_raw_nothrow(objectname: Moniker) ComResult[POINTER(IUnknown)]#
get_time_of_lastchange(objectname: Moniker) FILETIME#
get_time_of_lastchange_nothrow(objectname: Moniker) ComResult[FILETIME]#
is_running(objectname: Moniker) bool#
is_running_nothrow(objectname: Moniker) ComResult[bool]#
property moniker_items: tuple[Moniker, ...]#
property moniker_iter: Iterator[Moniker]#
note_changetime(register: c_ulong, time: FILETIME) None#
note_changetime_nothrow(register: c_ulong, time: FILETIME) ComResult[None]#
register(flags: RunningObjectTableFlag, object: POINTER(IUnknown), objectname: Moniker) int#
register_nothrow(flags: RunningObjectTableFlag, object: POINTER(IUnknown), objectname: Moniker) ComResult[int]#
revoke(register: int) None#
revoke_nothrow(register: int) ComResult[None]#
property wrapped_obj: c_void_p#
class powc.comobj.RunningObjectTableFlag(*values)#

ベースクラス: IntFlag

ROTFLAGS_*定数

ALLOW_ANY_CLIENT = 2#
REGISTRATION_KEEPS_ALIVE = 1#