 |
LookupPrivilegeName ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Retrieves the name that corresponds to the privilege represented on a specific system by a specified locally unique identifier (LUID). |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
BOOL WINAPI LookupPrivilegeName(
__in_opt LPCTSTR lpSystemName,
__in PLUID lpLuid,
__out_opt LPTSTR lpName,
__inout LPDWORD cchName
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER LookupPrivilegeName IN advapi32;
INTEGER lpSystemName,;
STRING @lpLuid,;
STRING @lpName,;
LONG @cchName
|
 |
 |
 |
| 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.
lpLuid [in]
A pointer to the LUID by which the privilege is known on the target system.
lpName [out, optional]
A pointer to a buffer that receives a null-terminated string that represents the privilege name. For example, this string could be "SeSecurityPrivilege".
cchName [in, out]
A pointer to a variable that specifies the size, in a TCHAR value, of the lpName buffer. |
 |
 |
| Return value: |
 |
| If the function succeeds, the function returns nonzero. |
 |
 |
| Usage: |
 |
nNameSize=250
cName=REPLICATE(CHR(0), nNameSize)
= LookupPrivilegeName(0, @cLuid, @cName, @nNameSize)
cName = SUBSTR(cName, 1, nNameSize)
|
 |
 |
| My comment: |
 |
typedef struct _LUID {
DWORD LowPart;
LONG HighPart;
} LUID, *PLUID;
Default privileges for VFP9 process on Vista:

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