CInternetSession::ServiceTypeFromHandle
Call this member function to get the type of service from the Internet handle.
DWORD ServiceTypeFromHandle(
HINTERNET hQuery
);
Parameters
- hQuery
A handle to an Internet query.
Return Value
The Internet service type. See Remarks for a list of recognized service types.
Remarks
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 object for unsupported service types.
참고
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.
Exceptions
This method can throw exceptions of type AfxThrowNotSupportedException.
Requirements
Header: afxinet.h