#[repr(transparent)]pub struct HResult(pub i32);Expand description
COM HRESULT.
Layout-compatible with i32 and with the windows-core crate’s
HRESULT(pub i32) type. Conversions to and from
windows_core::HRESULT are provided on Windows.
Tuple Fields§
§0: i32Implementations§
Source§impl HResult
impl HResult
Sourcepub const S_FALSE: Self
pub const S_FALSE: Self
S_FALSE — success with a “false” semantic (e.g. operation
completed but the queried condition does not hold).
Sourcepub const E_NOINTERFACE: Self
pub const E_NOINTERFACE: Self
E_NOINTERFACE — QueryInterface could not produce the
requested interface.
Sourcepub const E_UNEXPECTED: Self
pub const E_UNEXPECTED: Self
E_UNEXPECTED — catastrophic failure (last-resort code).
Sourcepub const E_OUTOFMEMORY: Self
pub const E_OUTOFMEMORY: Self
E_OUTOFMEMORY — allocation failure.
Sourcepub const E_INVALIDARG: Self
pub const E_INVALIDARG: Self
E_INVALIDARG — one or more arguments are invalid.
Sourcepub const CLASS_E_CLASSNOTAVAILABLE: Self
pub const CLASS_E_CLASSNOTAVAILABLE: Self
CLASS_E_CLASSNOTAVAILABLE — DllGetClassObject does not
recognise the requested CLSID.
Sourcepub const CLASS_E_NOAGGREGATION: Self
pub const CLASS_E_NOAGGREGATION: Self
CLASS_E_NOAGGREGATION — class refuses aggregation.
Sourcepub const APOERR_INVALID_INPUT_DATA: Self
pub const APOERR_INVALID_INPUT_DATA: Self
APOERR_INVALID_INPUT_DATA — input data does not match the
format negotiated during LockForProcess.
Sourcepub const APOERR_FORMAT_NOT_SUPPORTED: Self
pub const APOERR_FORMAT_NOT_SUPPORTED: Self
APOERR_FORMAT_NOT_SUPPORTED — proposed format is not
supported by this APO.
Sourcepub const APOERR_INVALID_API_VERSION: Self
pub const APOERR_INVALID_API_VERSION: Self
APOERR_INVALID_API_VERSION — caller is requesting an
unsupported APO API revision.
Sourcepub const APOERR_NUM_CONNECTIONS_INVALID: Self
pub const APOERR_NUM_CONNECTIONS_INVALID: Self
APOERR_NUM_CONNECTIONS_INVALID — the number of input or
output connections is not supported.
Sourcepub const APOERR_NOT_LOCKED: Self
pub const APOERR_NOT_LOCKED: Self
APOERR_NOT_LOCKED — operation is only valid between
LockForProcess and UnlockForProcess.
Sourcepub const APOERR_ALREADY_LOCKED: Self
pub const APOERR_ALREADY_LOCKED: Self
APOERR_ALREADY_LOCKED — APO is already locked.