Collapse All
Parallels Virtualization SDK
ContentsIndex
PreviousUpNext
PrlAcl_IsAllowed Function
PHT_ACCESS_RIGHTS

Determines if the current user is authorized to perform a specified task on a virtual machine.

Syntax
PRL_RESULT PrlAcl_IsAllowed(
    PRL_HANDLE hAcl, 
    PRL_ALLOWED_VM_COMMAND nPermission, 
    PRL_BOOL_PTR pbAllowed
);
File

PrlApiVm.h

Parameters

hAcl
A handle of type PHT_ACCESS_RIGHTS containing the access rights information for a virtual machine.
nPermission
Task type.
pbAllowed
[out] A pointer to a variable that receives the result. PRL_TRUE indicates that the user is allowed to perform the task. PRL_FALSE indicates otherwise.

Returns

PRL_RESULT. Possible values: 

PRL_ERR_INVALID_ARG - invalid handle or null pointer was passed. 

PRL_ERR_SUCCESS - function completed successfully. 

Links
© 2021 Parallels International GmbH. All rights reserved.