Module::RegisterObjects Method

 

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::RegisterObjects Method.

Registers COM or Windows Runtime objects so other applications can connect to them.

Syntax

HRESULT RegisterObjects(  
   ModuleBase* module,   
   const wchar_t* serverName);  

Parameters

module
An array of COM or Windows Runtime objects.

serverName
Name of the server that created the objects.

Return Value

S_OK if successful; otherwise, an HRESULT that indicates the reason the operation failed.

Requirements

Header: module.h

Namespace: Microsoft::WRL

See Also

Module Class