 |
LookupPrivilegeDisplayName ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Retrieves the display name that represents a specified privilege. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
BOOL WINAPI LookupPrivilegeDisplayName(
__in_opt LPCTSTR lpSystemName,
__in LPCTSTR lpName,
__out_opt LPTSTR lpDisplayName,
__inout LPDWORD cchDisplayName,
__out LPDWORD lpLanguageId
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER LookupPrivilegeDisplayName IN advapi32;
INTEGER lpSystemName,;
STRING lpName,;
STRING @lpDisplayName,;
LONG @cchDisplayName,;
LONG @lpLanguageId
|
 |
 |
 |
| Parameters: |
 |
lpSystemName [in, optional]
A pointer to a null-terminated string that specifies the name of the system on which the privilege name is retrieved.
lpName [in]
A pointer to a null-terminated string that specifies the name of the privilege, as defined in Winnt.h.
lpDisplayName [out, optional]
A pointer to a buffer that receives a null-terminated string that specifies the privilege display name.
cchDisplayName [in, out]
A pointer to a variable that specifies the size, in TCHARs, of the lpDisplayName buffer.
lpLanguageId [out]
A pointer to a variable that receives the language identifier for the returned display name. |
 |
 |
| Return value: |
 |
| If the function succeeds, the return value is nonzero. |
 |
 |
| Usage: |
 |
nNameSize=250
cDName=REPLICATE(CHR(0), nNameSize)
nLangId=0
= LookupPrivilegeDisplayName(0, "SeTimeZonePrivilege",;
@cDName, @nNameSize, @nLangId)
cDName = SUBSTR(cDName, 1, nNameSize)
|
 |
 |
| My comment: |
 |
Default privileges for VFP9 process on Vista:

See also: LookupPrivilegeName, LookupPrivilegeValue |
 |
 |
| Word Index links for the LookupPrivilegeDisplayName : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2009-02-03 14:06:20 | | Modified: | 2009-02-03 14:11:13 | Visited in last 7 days: 16 |