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)
WinHttpCrackUrl
    Add comment     W32 Constants      Translate this page
The WinHttpCrackUrl function separates a URL into its component parts such as host name and path.
Code examples:
Custom HttpRequest class (WinHTTP)
Declaration:
BOOL WinHttpCrackUrl(
  LPCWSTR pwszUrl,
  DWORD dwUrlLength,
  DWORD dwFlags,
  LPURL_COMPONENTS lpUrlComponents
);
FoxPro declaration:
DECLARE INTEGER WinHttpCrackUrl IN winhttp;
    STRING    pwszUrl,;
    INTEGER   dwUrlLength,;
    INTEGER   dwFlags,;
    STRING  @ lpUrlComponents

Parameters:
pwszUrl
[in] Pointer to a LPCWSTR that contains the canonical URL to separate.

dwUrlLength
[in] Value of type DWORD that contains the length of the pwszUrl string, in WCHARs.

dwFlags
[in] Value of type DWORD that contains the flags that control the operation.

lpUrlComponents
[in, out] Pointer to a URL_COMPONENTS structure that receives the URL components.
Return value:
Returns TRUE if the function succeeds, or FALSE otherwise.
My comment:
For WinHttpCrackUrl to work properly, the size of the URL_COMPONENTS structure must be stored in the dwStructSize member of that structure.
Word Index links for the WinHttpCrackUrl :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2003-04-07 19:31:03
Modified: 2003-04-07 19:34:37
Visited in last 7 days: 17
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 (23.20.86.177)
8 sec.Function: 'ShellAbout'
16 sec.Function: 'waveOutGetErrorText'
23 sec.Function: 'StrCpy'
26 sec.Function: 'send'
29 sec.Function: 'SetTextColor'
32 sec.Function: 'RegOpenKeyEx'
34 sec.Function: 'UrlGetPart'
37 sec.Function: 'Shell_NotifyIcon'
40 sec.Function: 'StrToInt'
46 sec.Function: 'waveOutGetDevCaps'
Google
Advertise here!