Collapse All
Parallels C API Reference Guide
PrlAcl_IsAllowed Function
PrlApi.h 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
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
Copyright © 1999-2011 Parallels Holdings, Ltd. and its affiliates. All rights reserved.
What do you think about this topic? Send feedback!