Crate windows[−][src]
Expand description
The Rust language projection follows in the tradition established by C++/WinRT
of building language projections for Windows using standard languages and compilers, providing a natural and idiomatic
way for Rust developers to call Windows APIs. The windows
crate lets you call any Windows API past, present, and
future using code generated on the fly directly from the metadata describing the API and right into your Rust package
where you can call them as if they were just another Rust module.
Learn more here: https://github.com/microsoft/windows-rs
Macros
A macro for generating Windows API bindings to a .rs file at build time.
A macro for generating Windows API bindings ahead of time.
Includes the generated bindings into the current context.
Structs
A WinRT array stores elements contiguously in a heap-allocated buffer.
A WinRT error object consists of both an error code as well as detailed error information for debugging.
A globally unique identifier (GUID) used to identify COM and WinRT interfaces.
A primitive error code value returned by most COM functions.
A WinRT string, sometimes called an HSTRING, is reference-counted and logically immutable. It should only be used for communicating with WinRT APIs.
A WinRT object that may be used as a polymorphic stand-in for any WinRT class, interface, or boxed value.
IInspectable
represents the
IInspectable
interface.
All COM interfaces (and thus WinRT classes and interfaces) implement IUnknown under the hood to provide reference-counted lifetime management as well as the ability to query for additional interfaces that the object may implement.
Weak
holds a non-owning reference to an object.
Traits
Win32 handle types implement this trait to simplify error handling.
Provides low-level access to a COM interface.
A trait for retrieving the implementation behind a COM or WinRT interface.
Functions
Attempts to load the factory interface for the given WinRT class.