Expand description
mssf-pal acts like the windows_core (and windows) crate for the windows-bindgen code to compile on linux. It reexposes windows_core com supports, and some Win32 error codes. windows_core does not support string types on linux, so we provide an minimal implementation here.
To use mssf-pal for windows-bindgen generated code, alias mssf-pal crate as the windows-core and windows crate, so that the generated code can resolve windows_core crate content via mssf-pal.
Modules§
- Win32
- Provides windows crate Win32 mod contents needed to build windows-bindgen generated code on linux, and some minimal common windows definitions.
- imp
Structs§
- BOOL
- A 32-bit value representing boolean values and returned by some functions to indicate success or failure.
- ComObject
- A counted pointer to a type that implements COM interfaces, where the object has been placed in the heap (boxed).
- Error
- An error object consists of both an error code and optional detailed error information for debugging.
- GUID
- A globally unique identifier (GUID) used to identify COM and WinRT interfaces.
- HRESULT
- An error code value returned by most COM functions.
- IInspectable
- Parent interface for all WinRT interfaces.
- IUnknown
- Base interface for all COM interfaces.
- Interface
Ref - This has the same memory representation as
IFoo
, but represents a borrowed interface pointer. - OutRef
- A borrowed type with the same memory layout as the type itself that can be used to construct ABI-compatible function signatures.
- PCSTR
- PCWSTR
- Ref
- A borrowed type with the same memory layout as the type itself that can be used to construct ABI-compatible function signatures.
- Static
ComObject - Enables applications to define COM objects using static storage. This is useful for factory objects, stateless objects, or objects which use need to contain or use mutable global state.
- WString
- WString is the utf16 string, similar to std::wstring in cpp. It is used for passing utf16 string buffers between Rust and COM.
Traits§
- AsImpl
- A trait for retrieving the implementation behind a COM or WinRT interface.
- ComObject
Inner - Identifies types that can be placed in
ComObject
. - ComObject
Interface - Describes the COM interfaces implemented by a specific COM object.
- Interface
- Provides low-level access to an interface vtable.
- OutParam
- Provides automatic parameter conversion in cases where the Windows API expects implicit conversion support.
- Param
- Provides automatic parameter conversion in cases where the Windows API expects implicit conversion support.
Type Aliases§
Attribute Macros§
- implement
- Implements one or more COM interfaces.