Contents Index Topic Contents | ||
Previous Topic: InternetQueryDataAvailable Next Topic: InternetReadFile |
InternetQueryOption
BOOL InternetQueryOption( IN HINTERNET hInternet, IN DWORD dwOption, OUT LPVOID lpBuffer, IN OUT LPDWORD lpdwBufferLength );Queries an Internet option on the specified handle.
- Returns TRUE if successful, or FALSE otherwise. To get a specific error message, call GetLastError.
- hInternet
- Internet handle on which to query information.
- dwOption
- Internet option to query. Can be one of the Option Flags values.
- lpBuffer
- Address of a buffer that receives the option setting.
- lpdwBufferLength
- Address of a variable that contains the length of lpBuffer. When the function returns, the variable receives the length of the data placed into lpBuffer. If GetLastError returns ERROR_INSUFFICIENT_BUFFER, this parameter receives the number of bytes required to hold the created URL.
See also FtpGetFile, FtpPutFile, InternetConnect, InternetOpen, InternetSetOption
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.