Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Module Class

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at 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.

Protected Classes

NameDescription
Module::GenericReleaseNotifier ClassInvokes 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 ClassInvokes 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 ClassInvokes an event handler when the last object in a module is released.

Public Constructors

NameDescription
Module::~Module DestructorDeinitializes the current instance of the Module class.

Protected Constructors

NameDescription
Module::Module ConstructorInitializes a new instance of the Module class.

Public Methods

NameDescription
Module::Create MethodCreates an instance of a module.
Module::DecrementObjectCount MethodDecrements the number of objects tracked by the module.
Module::GetActivationFactory MethodGets an activation factory for the module.
Module::GetClassObject MethodRetreives a cache of class factories.
Module::GetModule MethodCreates an instance of a module.
Module::GetObjectCount MethodRetrieves the number of objects managed by this module.
Module::IncrementObjectCount MethodIncrements the number of objects tracked by the module.
Module::RegisterCOMObject MethodRegisters one or more COM objects so other applications can connect to them.
Module::RegisterObjects MethodRegisters COM or Windows Runtime objects so other applications can connect to them.
Module::RegisterWinRTObject MethodRegisters one or more Windows Runtime objects so other applications can connect to them.
Module::Terminate MethodCauses all factories instantiated by the module to shut down.
Module::UnregisterCOMObject MethodUnregisters one or more COM objects, which prevents other applications from connecting to them.
Module::UnregisterObjects MethodUnregisters the objects in the specified module so that other applications cannot connect to them.
Module::UnregisterWinRTObject MethodUnregisters one or more Windows Runtime objects so that other applications cannot connect to them.

Protected Methods

NameDescription
Module::Create MethodCreates an instance of a module.

Protected Data Members

NameDescription
Module::objectCount_ Data MemberKeeps track of how many classes have been created with the Make function.
Module::releaseNotifier_ Data MemberHolds a pointer to a ReleaseNotifier object.

Macros

ActivatableClassPopulates 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.
ActivatableClassWithFactoryPopulates 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.
ActivatableClassWithFactoryExPopulates 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

Microsoft::WRL Namespace

Show:
© 2018 Microsoft