JCL Help:IsPrivilegeEnabled
JCL Help: IsPrivilegeEnabled Function
Search in JCL Help
Search in all projects
Summary
Tests if the specified Privilege is enabled.
Pascal
function IsPrivilegeEnabled(const Privilege: string): Boolean;
Parameters
Parameters | Description |
const Privilege: string | Access Control | Access Control | Access Control Reference | Windows NT Privileges. For example, you can pass in SE_DEBUG_NAME to test if the debugging privilege is enabled. |
Return Value
If the specified privilege is enabled for the calling thread then the function returns True, otherwise the function returns False - this is also the return value if the function fails in retrieving the status of the specified privilege.
Description
IsPrivilegeEnabled tests whether the specified privilege is enabled for the current thread. If the thread is currently impersonating a client the test is made against the credentials of that client, otherwise the test is made against the credentials of the user associated with the process that the calling thread runs in.
See Also
EnableProcessPrivilege EnableThreadPrivilege
About
Unit
Donator
Marcel van Brakel
Notes
Under Windows 95/98/Millenium Edition, this function does nothing; in addition, it always returns True.
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page