CGopherFile::CGopherFile
此成员函数调用构造 CGopherFile 对象。
CGopherFile(
HINTERNET hFile,
CGopherLocator& refLocator,
CGopherConnection* pConnection
);
CGopherFile(
HINTERNET hFile,
HINTERNET hSession,
LPCTSTR pstrLocator,
DWORD dwLocLen,
DWORD_PTR dwContext
);
参数
hFile
为 HINTERNET 文件的句柄。refLocator
为 CGopherLocator 对象的引用。pConnection
为 CGopherConnection 对象的指针。hSession
对当前Internet会话的句柄。pstrLocator
用于字符串的指针定位地鼠服务器。请参见 地鼠会话 有关地鼠定位器的更多信息。dwLocLen
包含字节数的DWORD在 pstrLocator。dwContext
对已打开的文件的上下文标识符的指针。
备注
在地鼠Internet会议期间,您需要 CGopherFile 对象读取文件。
您从不直接创建一 CGopherFile 对象。相反,请调用 CGopherConnection::OpenFile 打开在地鼠服务器的文件。
要求
Header: afxinet.h