Module Class
Represents a collection of related objects.
template<
ModuleType moduleType
>
class Module;
template<>
class Module<InProc> : public Details::ModuleBase;
template<>
class Module<OutOfProc> : public Module<InProc>;
Parameters
- moduleType
A combination of one or more ModuleType enumeration values.
Members
Protected Classes
Name |
Description |
---|---|
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. |
Public Constructors
Name |
Description |
---|---|
Deinitializes the current instance of the Module class. |
Protected Constructors
Name |
Description |
---|---|
Initializes a new instance of the Module class. |
Public Methods
Name |
Description |
---|---|
Creates an instance of a module. |
|
Decrements the number of objects tracked by the module. |
|
Gets an activation factory for the module. |
|
Retreives a cache of class factories. |
|
Creates an instance of a module. |
|
Retrieves the number of objects managed by this module. |
|
Increments the number of objects tracked by the module. |
|
Registers one or more COM objects so other applications can connect to them. |
|
Registers COM or Windows Runtime objects so other applications can connect to them. |
|
Registers one or more Windows Runtime objects so other applications can connect to them. |
|
Causes all factories instantiated by the module to shut down. |
|
Unregisters one or more COM objects, which prevents other applications from connecting to them. |
|
Unregisters the objects in the specified module so that other applications cannot connect to them. |
|
Unregisters one or more Windows Runtime objects so that other applications cannot connect to them. |
Protected Methods
Name |
Description |
---|---|
Creates an instance of a module. |
Protected Data Members
Name |
Description |
---|---|
Keeps track of how many classes have been created with the Make function. |
|
Holds a pointer to a ReleaseNotifier object. |
Macros
Populates an internal cache that contains a factory that can create an instance of the specified class. This macro specifies default factory and group ID parameters. |
|
Populates an internal cache that contains a factory that can create an instance of the specified class. This macro enables you to specify a particular factory parameter. |
|
Populates an internal cache that contains a factory that can create an instance of the specified class. This macro enables you to specify particular factory and group ID parameters. |
Inheritance Hierarchy
ModuleBase
Module
Module
Requirements
Header: module.h
Namespace: Microsoft::WRL