Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Reading and setting system access privileges for the current process
..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:
Reading and setting system access privileges for the current process
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
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.
cName=REPLICATE(CHR(0), nNameSize)

= LookupPrivilegeName(0, @cLuid, @cName, @nNameSize)

cName = SUBSTR(cName, 1, nNameSize)
My comment:
typedef struct _LUID {
  DWORD LowPart;
  LONG HighPart;

Default privileges for VFP9 process on Vista:

See also: LookupPrivilegeDisplayName, LookupPrivilegeValue
Word Index links for the LookupPrivilegeName :
Translate this page:
  Spanish    Portuguese    German    French    Italian offers instant, free translations of text or web pages.
Created: 2009-02-03 13:41:18
Modified: 2009-02-03 14:10:16
Visited in last 7 days: 35
User Contributed Notes:
There are no notes on this subject.

Copyright 2001-2018 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.39), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (
9 sec.Function: 'GetKeyboardLayoutName'
19 sec.Function: 'mciSendString'
28 sec.Function: 'CreateProcess'
37 sec.Function: 'GetProcessPreferredUILanguages'
48 sec.Function: 'GdipDrawImageI'
58 sec.Function: 'AVIStreamLength'
1.15 min.Function: 'ResetEvent'
1.7 hrs.Function: 'AVIStreamInfo'
 Function: 'GdipCreateFromHDC'
 Function: 'WinHttpOpen'
Advertise here!