pub unsafe extern "C-unwind" fn SCDynamicStoreCopyComputerName(
store: Option<&SCDynamicStore>,
name_encoding: *mut CFStringEncoding,
) -> Option<CFRetained<CFString>>Available on crate features
SCDynamicStore and SCDynamicStoreCopySpecific only.Expand description
Gets the current computer name.
Parameter store: An SCDynamicStoreRef representing the dynamic store
session that should be used for communication with the server.
If NULL, a temporary session will be used.
Parameter nameEncoding: A pointer to memory that, if non-NULL, will be
filled with the encoding associated with the computer or
host name.
Returns: Returns the current computer name; NULL if the name has not been set or if an error was encountered. You must release the returned value.