Function Reference


_WinAPI_UserHandleGrantAccess

Grants or denies access to a handle to a User object to a job that has a user-interface restriction

#include <WinAPIProc.au3>
_WinAPI_UserHandleGrantAccess ( $hObject, $hJob, $bGrant )

Parameters

$hObject Handle to the User object.
$hJob Handle to the job to be granted access to the User handle.
$bGrant Specifies whether to grant or deny access to the User handle, valid values:
True - The processes associated with the job can recognize and use the handle.
False - The processes cannot use the handle.

Return Value

Success: True
Failure: False

Remarks

The _WinAPI_UserHandleGrantAccess() function can be called only from a process not associated with the job
specified by the $hJob parameter. The User handle must not be owned by a process or thread associated
with the job.

See Also

Search UserHandleGrantAccess in MSDN Library.