IScheduler::GetUserPrivilege method
Retrieves the privilege level of the user.
Syntax
HRESULT GetUserPrivilege(
[out] UserPrivilege *pUserPrivilege
);
Parameters
- pUserPrivilege [out]
An UserPrivilege enumeration value that identifies the privilege level of the user (for example, if the user is running as an administrator or a normal user).
Return value
If the method succeeds, the return value is S_OK. Otherwise, the return value is an error code.
Examples
For an example, see Executing Commands.
Requirements
Product |
HPC Pack 2008 R2 Client Utilities, HPC Pack 2008 Client Utilities |
Type library |
Microsoft.Hpc.Scheduler.tlb |