pub trait ComWrapper {
    type Interface: Interface;

    unsafe fn get_raw(&self) -> *mut Self::Interface;
    unsafe fn into_raw(self) -> *mut Self::Interface;
    unsafe fn from_raw(raw: *mut Self::Interface) -> Self;
    unsafe fn from_ptr(ptr: ComPtr<Self::Interface>) -> Self;
    unsafe fn into_ptr(self) -> ComPtr<Self::Interface>;
}

Required Associated Types

The raw interface type from winapi

Required Methods

Gets a raw pointer to the interface. Does not increment the reference count

Consumes the wrapper without affecting the reference count

Creates a wrapper from the raw pointer. Takes ownership of the pointer for reference counting purposes.

Creates a wrapper taking ownership of a ComPtr.

Unwraps the wrapper into a ComPtr.

Implementors