Crate windows_core

Expand description

§windows-core

Core primitives for the windows crate.

Macros§

  • A literal HSTRING, length-prefixed wide string with a trailing null terminator.
  • A literal UTF-8 string with a trailing null terminator.
  • A literal UTF-16 wide string with a trailing null terminator.

Structs§

  • A type representing an agile reference to a COM/WinRT object.
  • A WinRT array stores elements contiguously in a heap-allocated buffer.
  • A BSTR string (BSTR) is a length-prefixed wide string.
  • A counted pointer to a type that implements COM interfaces, where the object has been placed in the heap (boxed).
  • An error object consists of both an error code and optional detailed error information for debugging.
  • A type that you can use to declare and implement an event of a specified delegate type.
  • A globally unique identifier (GUID) used to identify COM and WinRT interfaces.
  • An error code value returned by most COM functions.
  • An (HSTRING) is a reference-counted and immutable UTF-16 string type.
  • An HSTRING builder that supports preallocating the HSTRING to avoid extra allocations and copies.
  • Parent interface for all WinRT interfaces.
  • Base interface for all COM interfaces.
  • This has the same memory representation as IFoo, but represents a borrowed interface pointer.
  • A borrowed type with the same memory layout as the type itself that can be used to construct ABI-compatible function signatures.
  • A wrapper to provide ownership for handles to automatically drop via the handle’s Free trait.
  • A pointer to a constant null-terminated string of 8-bit Windows (ANSI) characters.
  • A pointer to a constant null-terminated string of 16-bit Unicode characters.
  • A pointer to a null-terminated string of 8-bit Windows (ANSI) characters.
  • A pointer to a null-terminated string of 16-bit Unicode characters.
  • A borrowed type with the same memory layout as the type itself that can be used to construct ABI-compatible function signatures.
  • 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.
  • Weak holds a non-owning reference to an object.

Traits§

  • A trait for retrieving the implementation behind a COM or WinRT interface.
  • Identifies types that can be placed in ComObject.
  • Describes the COM interfaces implemented by a specific COM object.
  • Custom code to free a handle.
  • Provides low-level access to an interface vtable.
  • Provides automatic parameter conversion in cases where the Windows API expects implicit conversion support.
  • Provides automatic parameter conversion in cases where the Windows API expects implicit conversion support.

Functions§

  • Attempts to load the factory object for the given WinRT class. This can be used to access COM interfaces implemented on a Windows Runtime class factory.

Type Aliases§

  • A specialized Result type that provides Windows error information.

Attribute Macros§

  • Implements one or more COM interfaces.
  • Defines a COM interface to call or implement.