---
title: "CFPlugInInstanceCreate(_:_:_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfplugininstancecreate(_:_:_:)"
---

# CFPlugInInstanceCreate(_:_:_:)

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

## Declaration

```swift
func CFPlugInInstanceCreate(_ allocator: CFAllocator!, _ factoryUUID: CFUUID!, _ typeUUID: CFUUID!) -> UnsafeMutableRawPointer!
```

## 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

Return Value Returns the IUnknown interface for the new plug-in.

## Discussion

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(_:_:)](corefoundation/cfplugincreate(_:_:).md)
