JCL Help:GetPrivilegeDisplayName

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Wrapper around the LookupPrivilegeDisplayName Windows API function.


Pascal

 function GetPrivilegeDisplayName(const PrivilegeName: string): string;


Parameters

Parameters Description
const PrivilegeName: string the name of the privilege, as defined in Winnt.h. For example, this parameter could specify 'SeRemoteShutdownPrivilege'.


Return Value

A string that specifies the privilege display name, or an empty string if the function failed. For example, if the PrivilegeName parameter is 'SeRemoteShutdownPrivilege', the privilege display name is 'Force shutdown from a remote system.'


Description

The GetPrivilegeDisplayName function retrieves the display name that represents a specified privilege on the local system.


About

Unit

JclSecurity


Donator

Anonymous


Notes

Under Windows 95/98/Millenium Edition, this function always returns an empty string.


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