Using Win32 functions in Visual FoxPro Image Gallery
Security
..msdn
ConvertSidToStringSid
GetAce
GetAclInformation
GetFileSecurity
GetLengthSid
GetNamedSecurityInfo
GetSecurityDescriptorDacl
GetSecurityDescriptorOwner
ImpersonateLoggedOnUser
IsValidSid
IsWellKnownSid
LogonUser
LookupAccountName
LookupAccountSid
LsaClose
LsaEnumerateLogonSessions
LsaFreeMemory
LsaFreeReturnBuffer
LsaGetLogonSessionData
LsaLookupSids
LsaOpenPolicy
RevertToSelf
Code examples:
How to run FoxPro application under different user name (impersonating user)
ImpersonateLoggedOnUser
..msdn    Add comment     W32 Constants      Translate this page
The ImpersonateLoggedOnUser function lets the calling thread impersonate the security context of a logged-on user. The user is represented by a token handle.
Code examples:
How to run FoxPro application under different user name (impersonating user)
Declaration:
BOOL ImpersonateLoggedOnUser(
  HANDLE hToken
);
FoxPro declaration:
DECLARE INTEGER ImpersonateLoggedOnUser IN advapi32;
    INTEGER hToken
Parameters:
hToken
[in] Handle to a primary or impersonation access token that represents a logged-on user.
Return value:
If the function succeeds, the return value is nonzero.
My comment:
hToken can be a token handle returned by a call to LogonUser, CreateRestrictedToken, DuplicateToken, DuplicateTokenEx, OpenProcessToken, or OpenThreadToken functions.
Word Index links for the ImpersonateLoggedOnUser :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2004-10-06 12:01:17
Modified: 2004-10-06 12:03:03
Visited in last 7 days: 26
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.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.224.197.86)
13 sec.Function: 'FileTimeToSystemTime'
27 sec.Function: 'GetProductInfo'
40 sec.Function: 'SQLGetInfo'
55 sec.Function: 'GdipGetPropertyIdList'
1.13 min.Function: 'TerminateJobObject'
1.37 min.
Function group: 'Path'
1.6 min.
Function group: 'Window Procedure'
1.8 min.Function: 'RemoveDirectoryTransacted'
2.02 min.Function: 'WTSFreeMemory'
2.23 min.Function: 'SetForegroundWindow'
Google
Advertise here!