1#![doc = include_str!("../readme.md")]
2#![debugger_visualizer(natvis_file = "../windows-result.natvis")]
3#![cfg_attr(all(not(feature = "std"), not(test)), no_std)]
4#![expect(
5 non_upper_case_globals,
6 non_snake_case,
7 non_camel_case_types,
8 clippy::upper_case_acronyms
9)]
10
11extern crate alloc;
12
13use alloc::string::String;
14
15#[expect(
16 dead_code,
17 reason = "IErrorInfo's generated IID accompanies the vtable but is not needed"
18)]
19mod bindings;
20use bindings::*;
21
22#[cfg(all(windows, not(windows_slim_errors)))]
23mod com;
24
25#[cfg(windows)]
26mod strings;
27#[cfg(windows)]
28use strings::*;
29
30#[cfg(all(windows, not(windows_slim_errors)))]
31mod bstr;
32
33mod error;
34pub use error::*;
35
36mod hresult;
37pub use hresult::HRESULT;
38
39mod bool;
40pub use bool::BOOL;
41
42mod win32_error;
43pub use win32_error::WIN32_ERROR;
44
45mod ntstatus;
46pub use ntstatus::NTSTATUS;
47
48mod rpc_status;
49pub use rpc_status::RPC_STATUS;
50
51pub type Result<T> = core::result::Result<T, Error>;