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)
WinHttpOpen
    Add comment     W32 Constants      Translate this page
Initializes an application"s use of the WinHTTP functions and returns a WinHTTP-session handle.
Code examples:
Custom HttpRequest class (WinHTTP)
Declaration:
HINTERNET WinHttpOpen(
  LPCWSTR pwszUserAgent,
  DWORD dwAccessType,
  LPCWSTR pwszProxyName,
  LPCWSTR pwszProxyBypass,
  DWORD dwFlags
);
FoxPro declaration:
DECLARE INTEGER WinHttpOpen IN winhttp;
    STRING  pwszUserAgent,;
    INTEGER dwAccessType,;
    STRING  pwszProxy,;
    STRING  pwszProxyBypass,;
    INTEGER dwFlags

Parameters:
pwszUserAgent
[in] Pointer to a string variable that contains the name of the application or entity calling the WinHTTP functions.

dwAccessType
[in] Type of access required -- a predefined value.

pwszProxyName
[in] Pointer to a string variable that contains the name of the proxy server to use.

pwszProxyBypass
[in] Pointer to a string variable that contains an optional list of host names or Internet Protocol (IP) addresses.

dwFlags
[in] Unsigned long integer value that contains the flags that indicate various options affecting the behavior of this function.
Return value:
Returns a valid session handle if successful, or NULL if not.
My comment:
MSDN: The WinHttpOpen function is the first of the WinHTTP functions called by an application. It initializes internal WinHTTP data structures and prepares for future calls from the application.

When the application finishes using the WinHTTP functions, it must call WinHttpCloseHandle to free the session handle and any associated resources.
Word Index links for the WinHttpOpen :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2003-04-07 19:24:37
Modified: 2003-04-07 19:30:30
Visited in last 7 days: 21
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.
Google
Advertise here!