Module::Create Method

Creates an instance of a module.

WRL_NOTHROW static Module& Create();
template<
   typename T
>
WRL_NOTHROW static Module& Create(
   T callback
);
template<
   typename T
>
WRL_NOTHROW static Module& Create(
   _In_ T* object,
   _In_ void (T::* method)()
);

Parameters

  • T
    Module type.

  • callback
    Called when the last instance object of the module is released.

  • object
    The object and method parameters are used in combination. Points to the last instance object when the last instance object in the module is released.

  • method
    The object and method parameters are used in combination. Points to the method of the last instance object when the last instance object in the module is released.

Return Value

Reference to the module.

Requirements

Header: module.h

Namespace: Microsoft::WRL

See Also

Reference

Module Class