WinHttpCreateProxyResolver function
The WinHttpCreateProxyResolver function creates a handle for use by WinHttpGetProxyForUrlEx.
Syntax
DWORD WinHttpCreateProxyResolver( _In_ HINTERNET hSession, _Out_ HINTERNET *phResolver );
Parameters
- hSession [in]
-
Valid HINTERNET WinHTTP session handle returned by a previous call to WinHttpOpen. The session handle must be opened using WINHTTP_FLAG_ASYNC.
- phResolver [out]
-
A pointer to a new handle for use by WinHttpGetProxyForUrlEx. When finished or cancelling an outstanding operation, close this handle with WinHttpCloseHandle.
Return value
A status code indicating the result of the operation.
| The following codes may be returned. | Description |
|---|---|
|
The operation succeeded. |
|
hSession is NULL. |
|
hSession is not the result of a call to WinHttpOpen or hSession is not marked as asynchronous using WINHTTP_FLAG_ASYNC. |
Requirements
|
Minimum supported client |
Windows 8 [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2012 [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|