Crate comedy

Crate comedy 

Source
Expand description

Windows error handling, COM, and handles

See macros for examples.

Re-exports§

pub use error::HResult;
pub use error::ResultExt;
pub use error::Win32Error;

Modules§

com
Utilities and wrappers for Microsoft COM interfaces in Windows.
error
Wrap several flavors of Windows error into a Result.
handle
Wrapping and automatically closing handles.

Macros§

call_handle_getter
Call a function that returns a HANDLE (NULL or INVALID_HANDLE_VALUE on failure), wrap result.
check_succeeded
Call a function that returns an HRESULT, convert to a Result.
check_true
Call a function that returns a integer, convert to a Result, using GetLastError() if zero.
com_call
Call a COM method, returning a Result.
com_call_getter
Call a COM method, create a ComRef from an output parameter.
com_call_taskmem_getter
Call a COM method, create a CoTaskMem from an output parameter.