void PASCAL AfxThrowFileException( int cause, LONG lOsError = -1 );
cause
An integer that indicates the reason for the exception. For a list of the possible values, see CFileException::m_cause.
lOsError
An operating-system-specific reason for the exception, if available. The lOsError parameter provides more information than cause.
Throws a CFileException. You are responsible for determining the cause based on the operating system error code. This is a helper function used in the implementation of the Microsoft Foundation classes.
Call this function when you implement your own low-level file operations in a derived file class.