<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 10.6.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "OpenDirectory",
  "identifier" : "/documentation/OpenDirectory/ODSessionCopyNodeNames(_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Open Directory"
    ],
    "preciseIdentifier" : "c:@F@ODSessionCopyNodeNames"
  },
  "title" : "ODSessionCopyNodeNames(_:_:_:)"
}
-->

# ODSessionCopyNodeNames(_:_:_:)

Returns the names of nodes registered in a given session.

```
func ODSessionCopyNodeNames(_ allocator: CFAllocator!, _ session: ODSessionRef!, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>!) -> Unmanaged<CFArray>!
```

## Parameters

`allocator`

The memory allocator to use. If `NULL`, the default allocator is used.

`session`

The session.

`error`

An error reference for error details. Can be `NULL`.

## Return Value

An array of valid node names in the given session.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)