Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
TRY
Expand Minimize

AfxGetInternetHandleType

Use this global function to determine the type of an Internet handle.

DWORD AFXAPI AfxGetInternetHandleType(
 HINTERNET hQuery 
);

Parameters

hQuery
A handle to an Internet query.

Return Value

Any of the Internet service types defined by WININET.H. See the Remarks section for a list of these Internet services. If the handle is NULL or not recognized, the function returns AFX_INET_SERVICE_UNK.

Remarks

The following list includes possible Internet types returned by AfxGetInternetHandleType.

  • INTERNET_HANDLE_TYPE_INTERNET
  • INTERNET_HANDLE_TYPE_CONNECT_FTP
  • INTERNET_HANDLE_TYPE_CONNECT_GOPHER
  • INTERNET_HANDLE_TYPE_CONNECT_HTTP
  • INTERNET_HANDLE_TYPE_FTP_FIND
  • INTERNET_HANDLE_TYPE_FTP_FIND_HTML
  • INTERNET_HANDLE_TYPE_FTP_FILE
  • INTERNET_HANDLE_TYPE_FTP_FILE_HTML
  • INTERNET_HANDLE_TYPE_GOPHER_FIND
  • INTERNET_HANDLE_TYPE_GOPHER_FIND_HTML
  • INTERNET_HANDLE_TYPE_GOPHER_FILE
  • INTERNET_HANDLE_TYPE_GOPHER_FILE_HTML
  • INTERNET_HANDLE_TYPE_HTTP_REQUEST
Note   In order to call this function, your project must include AFXINET.H.

See Also

MFC Macros and Globals | AfxParseURL

Show:
© 2015 Microsoft