DWORD ServiceTypeFromHandle( HINTERNET hQuery );
Return Value
The Internet service type. See Remarks for a list of recognized service types.
Parameters
hQuery
A handle to an Internet query.
Remarks
Call this member function to get the type of service from the Internet handle. The following service types are recognized by MFC:
Service type | Return value |
FTP | INTERNET_SERVICE_FTP |
HTTP | INTERNET_SERVICE_HTTP |
Gopher | INTERNET_SERVICE_GOPHER |
File | AFX_INET_SERVICE_FILE |
CInternetSession will throw an AfxThrowNotSupportedException for unsupported service types.
Note The return value AFX_INET_SERVICE_FILE is used only by MFC and is not recognized by Win32. This feature allows the client to access local files in the same way he or she would access Internet services.
CInternetSession Overview | Class Members | Hierarchy Chart
See Also CInternetSession::QueryOption, CInternetSession::operator HINTERNET