Module::RegisterWinRTObject 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::RegisterWinRTObject Method.
Registers one or more Windows Runtime objects so other applications can connect to them.
HRESULT RegisterWinRTObject(const wchar_t* serverName, wchar_t** activatableClassIds, WINRT_REGISTRATION_COOKIE* cookie, unsigned int count)
Parameters
serverName
A name that specifies a subset of objects affected by this operation.
activatableClassIds
An array of activatable CLSIDs to register.
cookie
A value that identifies the class objects that were registered. This value is used later to revoke the registration.
count
The number of objects to register.
S_OK if successful; otherwise, an error HRESULT such as CO_E_OBJISREG that indicates the reason the operation failed.
Header: module.h
Namespace: Microsoft::WRL
Module Class