[][src]Module comedy::com

Utilities and wrappers for Microsoft COM interfaces in Windows.

This works with the Class and Interface traits from the winapi crate.

Structs

CoTaskMem

A Windows COM task memory pointer that will be automatically freed.

ComApartmentScope

A scope for automatic COM initialization and deinitialization.

ComRef

Wrap COM interfaces sanely

Constants

INIT_MTA

A multithreaded apartment scope for the duration of the current thread.

INIT_STA

A single thread apartment scope for the duration of the current thread.

Functions

create_instance

Create an instance of a COM class.

create_instance_inproc_server

Create an instance of a COM class in a separate process space on the same machine (CLSCTX_INPROC_SERVER).

create_instance_local_server

Create an instance of a COM class in the current process (CLSCTX_LOCAL_SERVER).

get

Get an interface pointer that is returned through an output parameter.

get_cotaskmem

Get a task memory pointer that is returned through an output parameter.