Function

SecTaskCreateFromSelf

Creates a task object for the current task.

Declaration

SecTaskRef SecTaskCreateFromSelf(CFAllocatorRef allocator);

Parameters

allocator

An allocator. Pass NULL to use the default.

Return Value

A new task, or NULL on error. Call the CFRelease function to free this task's memory when you are done with it.

See Also

Tasks

SecTaskCreateWithAuditToken

Creates a task object for the task that sent the Mach message represented by the audit token.

SecTaskRef

The Core Foundation type representing a task.

SecTaskGetTypeID

Returns the unique identifier of the opaque type to which a task object belongs.

SecTaskCopySigningIdentifier

Returns the value of the code signing identifier.

SecTaskCopyValueForEntitlement

Returns the value of a single entitlement for the represented task.

SecTaskCopyValuesForEntitlements

Returns the values of multiple entitlements for the represented task.