[][src]Crate com_rs

com-rs 0.1.4

Rust bindings for the Win32 [Component Object Model] (https://msdn.microsoft.com/en-us/library/ms680573.aspx).

Overview

This crate is composed of three main components:

  • The com_interface! (macro.com_interface!.html) macro for defining new interface types.
  • The ComPtr type for making use of them.
  • Definition of IUnknown, the base COM interface.

Macros

com_interface

Macro for generating COM interface definitions.

iid

Helper macro for defining IID constants.

Structs

ComPtr

Wrapper type for COM interface pointers.

IID

Interface identifier.

IUnknown

Base interface for all COM types.

Traits

AsComPtr

Helper trait for ComPtr. Defines which types of raw pointer can be returned by as_ptr/as_mut_ptr.

ComInterface

Helper trait for ComPtr. Implemented automatically by the com_interface! macro.

Type Definitions

HResult

Result type.