outlook_mapi/
lib.rs

1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT license.
3
4//! All of the safe wrappers added by this crate, as well as any macros, are exported from the root
5//! module of this crate.
6//!
7//! All of the nested, unsafe types from
8//! [outlook-mapi-sys](https://crates.io/crates/outlook-mapi-sys) are re-exported as the `sys`
9//! module in this crate.
10
11/// Re-export all of the unsafe bindings from the
12/// [outlook-mapi-sys](https://crates.io/crates/outlook-mapi-sys) crate.
13pub mod sys {
14    pub use outlook_mapi_sys::Microsoft::Office::Outlook::MAPI::Win32::*;
15}
16
17pub mod installation {
18    pub use outlook_mapi_sys::installation::*;
19}
20
21pub mod mapi_initialize;
22pub mod mapi_logon;
23pub mod mapi_ptr;
24pub mod prop_tag;
25pub mod prop_value;
26pub mod row;
27pub mod row_set;
28pub mod sized_types;
29
30pub use mapi_initialize::*;
31pub use mapi_logon::*;
32pub use mapi_ptr::*;
33pub use prop_tag::*;
34pub use prop_value::*;
35pub use row::*;
36pub use row_set::*;
37pub use sized_types::*;
38
39pub fn is_outlook_mapi_installed() -> bool {
40    outlook_mapi_sys::ensure_olmapi32().is_ok()
41}