Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Supports the Windows Runtime C++ Template Library infrastructure and is not intended to be used directly from your code.
Syntax
struct CreatorMap;
Remarks
Contains information about how to initialize, register, and unregister objects.
CreatorMap contains the following information:
How to initialize, register, and unregister objects.
How to compare activation data depending on a classic COM or Windows Runtime factory.
Information about the factory cache and server name for an interface.
Members
Public Data Members
| Name | Description |
|---|---|
| CreatorMap::activationId | Represents an object ID that is identified either by a classic COM class ID or a Windows Runtime name. |
| CreatorMap::factoryCache | Stores the pointer to the factory cache for the CreatorMap. |
| CreatorMap::factoryCreator | Creates a factory for the specified CreatorMap. |
| CreatorMap::serverName | Stores the server name for the CreatorMap. |
Inheritance Hierarchy
CreatorMap
Requirements
Header: module.h
Namespace: Microsoft::WRL::Details
CreatorMap::activationId
Supports the WRL infrastructure and is not intended to be used directly from your code.
union {
const IID* clsid;
const wchar_t* (*getRuntimeName)();
} activationId;
Parameters
clsid
An interface ID.
getRuntimeName
A function that retrieves the Windows runtime name of an object.
Remarks
Represents an object ID that is identified either by a classic COM class ID or a Windows runtime name.
CreatorMap::factoryCache
Supports the WRL infrastructure and is not intended to be used directly from your code.
FactoryCache* factoryCache;
Remarks
Stores the pointer to the factory cache for the CreatorMap.
CreatorMap::factoryCreator
Supports the WRL infrastructure and is not intended to be used directly from your code.
HRESULT (*factoryCreator)(
unsigned int* currentflags,
const CreatorMap* entry,
REFIID iidClassFactory,
IUnknown** factory);
Parameters
currentflags
One of the RuntimeClassType enumerators.
entry
A CreatorMap.
iidClassFactory
The interface ID of a class factory.
factory
When the operation completes, the address of a class factory.
Return Value
S_OK if successful; otherwise, an HRESULT that indicates the error.
Remarks
Creates a factory for the specified CreatorMap.
CreatorMap::serverName
Supports the WRL infrastructure and is not intended to be used directly from your code.
const wchar_t* serverName;
Remarks
Stores the server name for the CreatorMap.