Using Win32 functions in Visual FoxPro Image Gallery
Authorization
AdjustTokenPrivileges
GetTokenInformation
LookupPrivilegeDisplayName
LookupPrivilegeName
LookupPrivilegeValue
OpenProcessToken
Code examples:
How to enable the SE_SHUTDOWN_NAME privilege for the application
How to load a user profile
Reading and setting system access privileges for the current process
LookupPrivilegeValue
..msdn    Add comment     W32 Constants      Translate this page
Retrieves the locally unique identifier (LUID) used on a specified system to locally represent the specified privilege name.
Code examples:
How to load a user profile
How to enable the SE_SHUTDOWN_NAME privilege for the application
Reading and setting system access privileges for the current process
Declaration:
BOOL WINAPI LookupPrivilegeValue(
  __in_opt  LPCTSTR lpSystemName,
  __in      LPCTSTR lpName,
  __out     PLUID lpLuid
);
FoxPro declaration:
DECLARE INTEGER LookupPrivilegeValue IN advapi32;
    INTEGER lpSystemName,;
    STRING lpName,;
    STRING @lpLuid
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.

lpLuid [out]
A pointer to a variable that receives the LUID by which the privilege is known on the system specified by the lpSystemName parameter.
Return value:
If the function succeeds, the function returns nonzero.
Usage:
nResult = LookupPrivilegeValue(0, SE_SHUTDOWN_NAME, @cLuid)
My comment:
The LookupPrivilegeValue function supports only the privileges specified in the Defined Privileges section of Winnt.h.
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2009-02-02 13:42:06
Modified: 2009-02-02 15:17:47
Visited in last 7 days: 38
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.90.207.75)
22 sec.Function: 'GdipGetImagePalette'
45 sec.Function: 'InternalGetWindowText'
1.13 min.Function: 'CryptUnprotectData'
1.52 min.Function: 'GetClipboardOwner'
1.92 min.Function: 'CreateProcessAsUser'
2.4 min.Function: 'VkKeyScan'
2.92 min.Function: 'NetServerEnum'
3.45 min.Function: 'GlobalGetAtomName'
3.98 min.Function: 'MonitorFromWindow'
4.63 min.Function: 'GetFileVersionInfoSize'
Google
Advertise here!