static void ThrowOsError( LONG lOsError );
lOsError
An operating-system-specific error code.
This static function throws a CFileException corresponding to a given lOsError value. If the error code is unknown, then the function throws an exception coded as CFileException::generic.
CFileException::ThrowOsError( 5 ); // "access denied"