Contents

AXUIElementGetPid(_:_:)

Returns the process ID associated with the specified accessibility object.

Declaration

func AXUIElementGetPid(_ element: AXUIElement, _ pid: UnsafeMutablePointer<pid_t>) -> AXError

Parameters

  • element:

    The AXUIElementRef representing an accessibility object.

  • pid:

    On return, the process ID associated with the specified accessibility object.

Return Value

If unsuccessful, AXUIElementGetPid may return one of the following error codes, among others:

kAXErrorIllegalArgument

One or more of the arguments is an illegal value.

kAXErrorInvalidUIElement

The AXUIElementRef is invalid.

See Also

Miscellaneous