| title | Module Class | Microsoft Docs | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| ms.custom | ||||||||||
| ms.date | 11/04/2016 | |||||||||
| ms.reviewer | ||||||||||
| ms.suite | ||||||||||
| ms.technology |
|
|||||||||
| ms.tgt_pltfrm | ||||||||||
| ms.topic | reference | |||||||||
| f1_keywords |
|
|||||||||
| dev_langs |
|
|||||||||
| helpviewer_keywords |
|
|||||||||
| ms.assetid | dd67e3b8-c2e1-4f53-8c0f-565a140ba649 | |||||||||
| caps.latest.revision | 6 | |||||||||
| author | mikeblome | |||||||||
| ms.author | mblome | |||||||||
| manager | ghogen | |||||||||
| translation.priority.ht |
|
|||||||||
| translation.priority.mt |
|
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>;
moduleType
A combination of one or more ModuleType enumeration values.
| Name | Description |
|---|---|
| Module::GenericReleaseNotifier Class | 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. |
| Module::MethodReleaseNotifier Class | 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. |
| Module::ReleaseNotifier Class | Invokes an event handler when the last object in a module is released. |
| Name | Description |
|---|---|
| Module::~Module Destructor | Deinitializes the current instance of the Module class. |
| Name | Description |
|---|---|
| Module::Module Constructor | Initializes a new instance of the Module class. |
| Name | Description |
|---|---|
| Module::Create Method | Creates an instance of a module. |
| Module::DecrementObjectCount Method | Decrements the number of objects tracked by the module. |
| Module::GetActivationFactory Method | Gets an activation factory for the module. |
| Module::GetClassObject Method | Retreives a cache of class factories. |
| Module::GetModule Method | Creates an instance of a module. |
| Module::GetObjectCount Method | Retrieves the number of objects managed by this module. |
| Module::IncrementObjectCount Method | Increments the number of objects tracked by the module. |
| Module::RegisterCOMObject Method | Registers one or more COM objects so other applications can connect to them. |
| Module::RegisterObjects Method | Registers COM or Windows Runtime objects so other applications can connect to them. |
| Module::RegisterWinRTObject Method | Registers one or more Windows Runtime objects so other applications can connect to them. |
| Module::Terminate Method | Causes all factories instantiated by the module to shut down. |
| Module::UnregisterCOMObject Method | Unregisters one or more COM objects, which prevents other applications from connecting to them. |
| Module::UnregisterObjects Method | Unregisters the objects in the specified module so that other applications cannot connect to them. |
| Module::UnregisterWinRTObject Method | Unregisters one or more Windows Runtime objects so that other applications cannot connect to them. |
| Name | Description |
|---|---|
| Module::Create Method | Creates an instance of a module. |
| Name | Description |
|---|---|
| Module::objectCount_ Data Member | Keeps track of how many classes have been created with the Make function. |
| Module::releaseNotifier_ Data Member | Holds a pointer to a ReleaseNotifier object. |
| ActivatableClass | 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. |
| ActivatableClassWithFactory | 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. |
| ActivatableClassWithFactoryEx | 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. |
ModuleBase
Module
Module
Header: module.h
Namespace: Microsoft::WRL