---
title: "SCDynamicStoreCreate(_:_:_:_:)"
framework: systemconfiguration
role: symbol
role_heading: Function
path: "systemconfiguration/scdynamicstorecreate(_:_:_:_:)"
---

# SCDynamicStoreCreate(_:_:_:_:)

Creates a new session used to interact with the dynamic store maintained by the System Configuration server.

## Declaration

```swift
func SCDynamicStoreCreate(_ allocator: CFAllocator?, _ name: CFString, _ callout: SCDynamicStoreCallBack?, _ context: UnsafeMutablePointer<SCDynamicStoreContext>?) -> SCDynamicStore?
```

## Parameters

- `allocator`: The allocator that should be used to allocate memory for the local dynamic store object. This parameter may be NULL in which case the current default allocator is used. If this value is not a valid doc://com.apple.documentation/documentation/CoreFoundation/CFAllocator, the behavior is undefined.
- `name`: The name of the calling process or plug-in of the caller.
- `callout`: The function to be called when a watched value in the dynamic store is changed. Pass NULL if no callouts are desired.
- `context`: The context associated with the callout. See doc://com.apple.systemconfiguration/documentation/SystemConfiguration/SCDynamicStoreContext for more information about this value.

## Return Value

Return Value A reference to the new dynamic store session. You must release the returned value.

## See Also

### Creating a Dynamic Store Session

- [SCDynamicStoreCreateWithOptions(_:_:_:_:_:)](systemconfiguration/scdynamicstorecreatewithoptions(_:_:_:_:_:).md)
