Virtuozzo Virtualization SDK C API Reference
Sets access rights on a virtual machine.
The owner of a virtual machine can use this function to grant or deny access rights for the virtual machine to other users. The access rights will be applied to all users. The call will only update the local copy of the PHT_ACCESS_RIGHTS object passed to the function (you will have to properly obtain the object prior to calling this function). To apply the changes to the virtual machine, call the PrlVm_UpdateSecurity function after making this calls and pass the same PHT_ACCESS_RIGHTS handle to it.