blob: 0927093f394b7231f19681b6c8fae5fff7e4c5e3 [file] [log] [blame]
// Copyright © 2016-2017 winapi-rs developers
// Licensed under the Apache License, Version 2.0
// <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
// All files in the project carrying such notice may not be copied, modified, or distributed
// except according to those terms.
#![cfg(windows)]
#![deny(unused, unused_qualifications)]
#![warn(unused_attributes)]
#![allow(bad_style, overflowing_literals, unused_macros)]
#![recursion_limit = "2563"]
#![no_std]
#![cfg_attr(feature = "cargo-clippy", allow(absurd_extreme_comparisons, cast_lossless, cast_ptr_alignment, const_static_lifetime, erasing_op, excessive_precision, identity_op, many_single_char_names, module_inception, too_many_arguments, transmute_int_to_float, unreadable_literal, unseparated_literal_suffix))]
#[cfg(feature = "std")]
extern crate std;
/// Hack for exported macros
#[doc(hidden)]
pub extern crate core as _core;
// Modules
#[macro_use]
mod macros;
pub mod shared;
pub mod um;
pub mod vc;
pub mod winrt;
/// Built in primitive types provided by the C language
pub mod ctypes {
#[cfg(feature = "std")]
pub use std::os::raw::c_void;
#[cfg(not(feature = "std"))]
pub enum c_void {}
pub type c_char = i8;
pub type c_schar = i8;
pub type c_uchar = u8;
pub type c_short = i16;
pub type c_ushort = u16;
pub type c_int = i32;
pub type c_uint = u32;
pub type c_long = i32;
pub type c_ulong = u32;
pub type c_longlong = i64;
pub type c_ulonglong = u64;
pub type c_float = f32;
pub type c_double = f64;
pub type __int8 = i8;
pub type __uint8 = u8;
pub type __int16 = i16;
pub type __uint16 = u16;
pub type __int32 = i32;
pub type __uint32 = u32;
pub type __int64 = i64;
pub type __uint64 = u64;
pub type wchar_t = u16;
}
// This trait should be implemented for all COM interfaces
pub trait Interface {
// Returns the IID of the Interface
fn uuidof() -> shared::guiddef::GUID;
}
// This trait should be implemented for all COM classes
pub trait Class {
// Returns the CLSID of the Class
fn uuidof() -> shared::guiddef::GUID;
}