Collapse All
Parallels C API Reference Guide
PrlUsrCfg_IsLocalAdministrator Function
PrlApi.h PHT_USER_PROFILE

Determines if the user is a local administrator account on the host where Parallels Service started.

Syntax
PRL_RESULT PrlUsrCfg_IsLocalAdministrator(
    PRL_HANDLE hUserProfile, 
    PRL_BOOL_PTR pbIsLocalAdmin
);
File
Parameters

hUserProfile
A handle of type PHT_USER_PROFILE identifying the user.
pbIsLocalAdmin
[out] A pointer to a variable that receives the result. PRL_TRUE indicates that the user is local administrator. 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!