The moniker client calls this method to query for protocol-specific information about the bind operation.
HRESULT QueryOption(
DWORD
dwOption, //Information requested
LPVOID pBuffer, //Buffer to receive query results
DWORD *pcbBuf //Pointer to size of buffer
);
Parameters
dwOption
[in] Information being requested. Valid values are documented with InternetQueryOption.
pBuffer
[out] Pointer to the buffer to receive the results of the query.
pcbBuf
[in, out] Pointer to the DWORD value for the length of data written to pBuffer.
Return Values
S_OK
The query was successful.
E_INVALIDARG
One or more parameters are invalid.
Remarks
This method maps directly to the Windows Internet InternetQueryOption function.