Function

CFPlugInInstanceCreate

Creates a CFPlugIn instance of a given type using a given factory.

Declaration

void * CFPlugInInstanceCreate(CFAllocatorRef allocator, CFUUIDRef factoryUUID, CFUUIDRef typeUUID);

Parameters

allocator

The allocator to use to allocate memory for the new object. Pass NULL or kCFAllocatorDefault to use the default allocator.

factoryUUID

The UUID representing the factory function to use to create a plug-in of the given type.

typeUUID

The UUID type.

Return Value

Returns the IUnknown interface for the new plug-in.

Discussion

The plug-in host uses this function to create an instance of the given type. Unless the plug-in is using dynamic registration, this function causes the plug-in's code to be loaded into memory.

See Also

Creating Plug-ins

CFPlugInCreate

Creates a CFPlugIn given its URL.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software