Using Win32 functions in Visual FoxPro Image Gallery
HTTP Functions (WinHTTP)
WinHttpAddRequestHeaders
WinHttpCloseHandle
WinHttpConnect
WinHttpCrackUrl
WinHttpOpen
WinHttpOpenRequest
WinHttpQueryDataAvailable
WinHttpQueryHeaders
WinHttpReadData
WinHttpReceiveResponse
WinHttpSendRequest
WinHttpSetCredentials
Code examples:
Custom HttpRequest class (WinHTTP)
WinHttpSetCredentials
..msdn    Add comment     W32 Constants      Translate this page
The WinHttpSetCredentials function passes the required authorization credentials to the server.
Code examples:
Custom HttpRequest class (WinHTTP)
Declaration:
BOOL WinHttpSetCredentials(
  HINTERNET hRequest,
  DWORD AuthTargets,
  DWORD AuthScheme,
  LPCWSTR pwszUserName,
  LPCWSTR pwszPassword,
  LPVOID pAuthParams
);
FoxPro declaration:
DECLARE INTEGER WinHttpSetCredentials IN winhttp;
    INTEGER hRequest,;
    INTEGER AuthTargets,;
    INTEGER AuthScheme,;
    STRING  pwszUserName,;
    STRING  pwszPassword,;
    INTEGER pAuthParams

Parameters:
hRequest
[in] Valid HINTERNET handle returned by WinHttpOpenRequest.

AuthTargets
[in] An unsigned integer that specifies a flag that contains the authentication target.

AuthScheme
[in] An unsigned integer that specifies a flag that contains the authentication scheme.

pwszUserName
[in] Pointer to a string that contains a valid user name.

pwszPassword
[in] Pointer to a string that contains a valid password. The password can be blank.

pAuthParams
[in] Reserved. Must be NULL.
Return value:
Returns TRUE if successful, or FALSE otherwise. For extended error information, call GetLastError.
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2003-11-28 15:55:12
Modified: 2003-11-28 15:56:57
Visited in last 7 days: 14
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.36), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.166.197.230)
1.53 min.Function: 'SetupGetInfInformation'
3.43 min.Function: 'WinHttpCloseHandle'
8.52 min.Function: 'SQLTables'
Google
Advertise here!