Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 1.07 KB

File metadata and controls

49 lines (32 loc) · 1.07 KB

Home

Function name : WinHttpCloseHandle

Group: HTTP Functions (WinHTTP) - Library: winhttp


The WinHttpCloseHandle function closes a single HINTERNET handle.


Code examples:

Custom HttpRequest class (WinHTTP)

Declaration:

BOOL WinHttpCloseHandle(
  HINTERNET hInternet
);  

FoxPro declaration:

DECLARE INTEGER WinHttpCloseHandle IN winhttp;
	INTEGER hInternet  

Parameters:

hInternet [in] Valid HINTERNET handle to be closed.


Return value:

Returns TRUE if the handle is successfully closed, or FALSE otherwise.


Comments:

MSDN: When WinHTTP is used in asynchronous mode (that is, when WINHTTP_FLAG_ASYNC has been set in WinHttpOpen), this function operates synchronously.

The return value indicates success or failure. To get extended error information, call GetLastError.