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)
How to Start a Process as Another User (NT/XP/2K)
LogonUser
..msdn    Add comment     W32 Constants      Translate this page
The LogonUser function attempts to log a user on to the local computer. The local computer is the computer from which LogonUser was called. You cannot use LogonUser to log on to a remote computer.
Code examples:
How to Start a Process as Another User (NT/XP/2K)
How to run FoxPro application under different user name (impersonating user)
Declaration:
BOOL LogonUser(
  LPTSTR lpszUsername,
  LPTSTR lpszDomain,
  LPTSTR lpszPassword,
  DWORD dwLogonType,
  DWORD dwLogonProvider,
  PHANDLE phToken
);
FoxPro declaration:
DECLARE INTEGER LogonUser IN advapi32;
    STRING    lpszUsername,;
    STRING    lpszDomain,;
    STRING    lpszPassword,;
    INTEGER   dwLogonType,;
    INTEGER   dwLogonProvider,;
    INTEGER @ phToken

Parameters:
lpszUsername
[in] Pointer to a null-terminated string that specifies the name of the user.

lpszDomain
[in] Pointer to a null-terminated string that specifies the name of the domain or server whose account database contains the lpszUsername account.

lpszPassword
[in] Pointer to a null-terminated string that specifies the clear-text password for the user account specified by lpszUsername.

dwLogonType
[in] Specifies the type of logon operation to perform.

dwLogonProvider
[in] Specifies the logon provider.

phToken
[out] Pointer to a handle variable that receives a handle to a token that represents the specified user.
Return value:
If the function succeeds, the return value is nonzero.
Word Index links for the LogonUser :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2003-10-30 15:05:02
Modified: 2003-10-30 15:08:24
Visited in last 7 days: 161
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2014 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.1.68), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.163.91.250)
23 sec.
Function group: 'URL Monikers'
13.01 hrs.Example: 'How to convert a bitmap file to monochrome format (1 bpp)'
Language: 'Visual FoxPro'
Google
Advertise here!