CInternetSession::ServiceTypeFromHandle
Call this member function to get the type of service from the Internet handle.
DWORD ServiceTypeFromHandle(
HINTERNET hQuery
);
Параметры
- hQuery
A handle to an Internet query.
Возвращаемое значение
The Internet service type. See Remarks for a list of recognized service types.
Заметки
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. |
Исключения
This method can throw exceptions of type AfxThrowNotSupportedException.
Требования
Header: afxinet.h