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(NULLorINVALID_HANDLE_VALUEon failure), wrap result. - check_
succeeded - Call a function that returns an
HRESULT, convert to aResult. - check_
true - Call a function that returns a integer, convert to a
Result, usingGetLastError()if zero. - com_
call - Call a COM method, returning a
Result. - com_
call_ getter - Call a COM method, create a
ComReffrom an output parameter. - com_
call_ taskmem_ getter - Call a COM method, create a
CoTaskMemfrom an output parameter.