MonobjcMonobjc Documented Class Library
AuthorizationExecuteWithPrivileges Method (authorization, pathToTool, options, arguments, communicationsPipe)
NamespacesMonobjc.SecurityFoundationSecurityFoundationFrameworkAuthorizationExecuteWithPrivileges(IntPtr, String, AuthorizationFlags, IntPtr, IntPtr)

Runs an executable tool with root privileges.

Original signature is 'OSStatus AuthorizationExecuteWithPrivileges ( AuthorizationRef authorization, const char *pathToTool, AuthorizationFlags options, char *const *arguments, FILE **communicationsPipe );'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static int AuthorizationExecuteWithPrivileges(
	IntPtr authorization,
	string pathToTool,
	AuthorizationFlags options,
	IntPtr arguments,
	IntPtr communicationsPipe
)
Public Shared Function AuthorizationExecuteWithPrivileges ( _
	authorization As IntPtr, _
	pathToTool As String, _
	options As AuthorizationFlags, _
	arguments As IntPtr, _
	communicationsPipe As IntPtr _
) As Integer
public:
static int AuthorizationExecuteWithPrivileges(
	IntPtr authorization, 
	String^ pathToTool, 
	AuthorizationFlags options, 
	IntPtr arguments, 
	IntPtr communicationsPipe
)
Parameters
authorization (IntPtr)
MISSING
pathToTool (String)
MISSING
options (AuthorizationFlags)
MISSING
arguments (IntPtr)
MISSING
communicationsPipe (IntPtr)
MISSING
Return Value
A result code. See “Authorization Services Result Codes.”
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.SecurityFoundation (Module: Monobjc.SecurityFoundation)