This method retrieves the status of an open file.
The first implementation of GetStatus retrieves the status of the open file associated with this CFile object. It does not insert a value into the m_szFullName data member.
The static implementation gets the status of the named file and copies the file name to m_szFullName. This method obtains the file status from the directory entry without actually opening the file. It is useful for testing the existence and access rights of a file.
Header file: | Afx.h |
Platforms: | H/PC 2.0, Palm-size PC, H/PC Pro |
Windows CE versions: | 1.0 and later |
Complete documentation: | Visual C++ documentation |
BOOL GetStatus( CFileStatus& rStatus ) const;
static BOOL PASCAL GetStatus( LPCTSTR lpszFileName, CFileStatus& rStatus );