Function SCDynamicStoreKeyCreateConsoleUser

Source
pub unsafe extern "C-unwind" fn SCDynamicStoreKeyCreateConsoleUser(
    allocator: Option<&CFAllocator>,
) -> CFRetained<CFString>
Available on crate feature SCDynamicStoreKey only.
Expand description

Creates a key that can be used in conjunction with SCDynamicStoreSetNotificationKeys function to receive notifications when the current console user changes.

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

Returns: Returns a notification string for the current console user.