Key WRL APIs by Category
The following tables list primary Windows Runtime C++ Template Library classes, structs, functions, and macros. Constructs in helper namespaces and classes are omitted. These lists augment the API documentation, which is arranged by namespace.
Enables one or more classes to be activated by the Windows Runtime.
Implements the Windows Runtime asynchronous state machine.
Implements the basic functionality of the IClassFactory interface.
Creates a smart pointer type that represents the interface specified by the template parameter. ComPtr automatically maintains a reference count for the underlying interface pointer and releases the interface when the reference count goes to zero.
Represents an event.
Represents an event. EventSource member functions add, remove, and invoke event handlers.
Represents a free-threaded marshaler object.
Represents a handle to an object.
Provides support for manipulating HSTRING handles.
Represents an HSTRING that is created from an existing string.
Represents a collection of related objects.
Invokes an event handler when the last object in the current module is released. The event handler is specified by on a lambda, functor, or pointer-to-function.
Invokes an event handler when the last object in the current module is released. The event handler is specified by an object and its pointer-to-a-method member.
Invokes an event handler when the last object in a module is released.
Initializes the Windows Runtime.
Represents an instantiated class that inherits the specified number of interfaces, and provides the specified Windows Runtime, classic COM, and weak reference support.
Provides a fundamental mechanism to create a Windows Runtime or classic COM base class.
Provides a fundamental mechanism to create a base class.
Represents a weak reference that can be used by only the Windows Runtime, not classic COM. A weak reference represents an object that might or might not be accessible.
Specifies verification and initialization functions that can be applied to a set of interface IDs.
Indicates to the RuntimeClass, Implements and ChainInterfaces templates that the specified interface is not accessible in the IID list.
Implements QueryInterface and GetIid for the specified interfaces.
Ensures that a runtime class derives from Windows Runtime interfaces, if any, and then classic COM interfaces.
Registers and retrieves an instance of a specified type defined in a specified class ID.
Retrieves a weak reference to a specified instance.
Creates an object whose member function is a callback method.
Creates a factory that produces instances of the specified class that can be activated by the Windows Runtime.
Creates a factory that produces instances of the specified class.
Retrieves an activation factory for the type specified by the template parameter.
Initializes the specified Windows Runtime class.