Contents

SCDynamicStoreCopyComputerName(_:_:)

Returns the current computer name.

Declaration

func SCDynamicStoreCopyComputerName(_ store: SCDynamicStore?, _ nameEncoding: UnsafeMutablePointer<CFStringEncoding>?) -> CFString?

Parameters

  • store:

    The dynamic store session that should be used for communication with the server. Pass NULL to use a temporary session.

  • nameEncoding:

    A pointer to memory that, on output, is filled with the encoding associated with the computer or host name, if it is non-NULL.

Return Value

The current computer name, or NULL if the name has not been set or if an error occurred. You must release the return value.

See Also

Group