Function

SCDynamicStoreKeyCreateComputerName

Creates a key that can be used to receive notifications when the current computer name changes.

Declaration

CFStringRef SCDynamicStoreKeyCreateComputerName(CFAllocatorRef allocator);

Parameters

allocator

The allocator that should be used to allocate memory for this key. This parameter may be NULL in which case the current default allocator is used. If this value is not a valid CFAllocatorRef, the behavior is undefined.

Return Value

A notification string for the current computer or host name.

Discussion

Use this key with the SCDynamicStoreSetNotificationKeys function.

See Also

Group

SCDynamicStoreKeyCreate

Creates a dynamic store key using the specified format.

SCDynamicStoreKeyCreateNetworkGlobalEntity

Creates a dynamic store key that can be used to access a specific global (as opposed to a per-service or per-interface) network configuration entity.

SCDynamicStoreKeyCreateNetworkInterface

Creates a dynamic store key that can be used to access the network interface configuration information in the dynamic store.

SCDynamicStoreKeyCreateNetworkInterfaceEntity

Creates a dynamic store key that can be used to access the per-interface network configuration information in the dynamic store.

SCDynamicStoreKeyCreateNetworkServiceEntity

Creates a dynamic store key that can be used to access the per-service network configuration information.

SCDynamicStoreKeyCreateConsoleUser

Creates a key that can be used to receive notifications when the current console user changes.

SCDynamicStoreKeyCreateHostNames

Creates a key that can be used to receive notifications when the HostNames entity changes.

SCDynamicStoreKeyCreateLocation

Creates a key that can be used to receive notifications when the location identifier changes.

SCDynamicStoreKeyCreateProxies

Creates a key that can be used to receive notifications when the current network proxy settings are changed.