Udostępnij za pośrednictwem


CInternetFile::CInternetFile

This member function is called when a CInternetFile object is created.

CInternetFile( 
   HINTERNET hFile, 
   LPCTSTR pstrFileName, 
   CInternetConnection* pConnection, 
   BOOL bReadMode  
); 
CInternetFile( 
   HINTERNET hFile, 
   HINTERNET hSession, 
   LPCTSTR pstrFileName, 
   LPCTSTR pstrServer, 
   DWORD_PTR dwContext, 
   BOOL bReadMode 
);

Parameters

  • hFile
    A handle to an Internet file.

  • pstrFileName
    A pointer to a string containing the file name.

  • pConnection
    A pointer to a CInternetConnection object.

  • bReadMode
    Indicates whether the file is read-only.

  • hSession
    A handle to an Internet session.

  • pstrServer
    A pointer to a string containing the name of the server.

  • dwContext
    The context identifier for the CInternetFile object. See WinInet Basics for more information about the context identifier.

Remarks

You never create a CInternetFile object directly. Instead, create an object of one of its derived classes by calling CGopherConnection::OpenFile or CHttpConnection::OpenRequest. You also can create a CInternetFile object by calling CFtpConnection::OpenFile.

Requirements

Header: afxinet.h

See Also

Reference

CInternetFile Class

Hierarchy Chart

CInternetConnection Class

CHttpFile Class

CGopherFile Class

Other Resources

CInternetFile Members