Using Win32 functions in Visual FoxPro Image Gallery
Authorization
AdjustTokenPrivileges
GetTokenInformation
LookupPrivilegeDisplayName
LookupPrivilegeName
LookupPrivilegeValue
OpenProcessToken
Code examples:
Reading and setting system access privileges for the current process
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:
Reading and setting system access privileges for the current process
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:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com 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: 20
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 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.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.82.112.193)
19 sec.Function: 'GdipGetImageRawFormat'
37 sec.Function: 'JetCloseTable'
57 sec.Example: 'Enumerating the subkeys of a user-specific key'
1.27 min.
Function group: 'Memory Management'
1.58 min.Function: 'RegEnumKeyEx'
1.87 min.Function: 'WNetDisconnectDialog'
2.2 min.Function: 'GetMonitorCapabilities'
2.53 min.Function: 'SetWaitableTimer'
2.85 min.Function: 'GdipSetSmoothingMode'
3.13 min.Function: 'FindFirstUrlCacheEntry'
Google
Advertise here!