Group: Internet Functions (WinInet) - Library: wininet
Custom HttpRequest class (WinINet)
BOOL HttpQueryInfo(
HINTERNET hRequest,
DWORD dwInfoLevel,
LPVOID lpvBuffer,
LPDWORD lpdwBufferLength,
LPDWORD lpdwIndex
);
DECLARE INTEGER HttpQueryInfo IN wininet;
INTEGER hRequest,;
LONG dwInfoLevel,;
STRING @ lpvBuffer,;
LONG @ lpdwBufferLength,;
LONG @ lpdwIndex
hRequest [in] Handle returned by HttpOpenRequest or InternetOpenUrl.
dwInfoLevel [in] Combination of an attribute to be retrieved and flags that modify the request. For a list of possible attribute and modifier values, see Query Info Flags.
lpvBuffer [in] Pointer to a buffer that receives the information. This parameter must not be NULL.
lpdwBufferLength [in] Pointer to a variable that contains the size of the data buffer, in bytes.
lpdwIndex [in, out] Pointer to a zero-based header index used to enumerate multiple headers with the same name.
Returns TRUE if successful, or FALSE otherwise.
The following lists contain the attributes and modifiers used by HttpQueryInfo and QueryInfo: Query Info Flags.