Export (0) Print
Expand All

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)

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

Show:
© 2014 Microsoft