Freigeben über


CFileException::OsErrorToException

Returns an enumerator that corresponds to a given lOsError value. If the error code is unknown, then the function returns CFileException::generic.

static int PASCAL OsErrorToException(
   LONG lOsError 
);

Parameters

  • lOsError
    An operating-system-specific error code.

Return Value

Enumerated value that corresponds to a given operating-system error value.

Example

ASSERT(CFileException::OsErrorToException(ERROR_ACCESS_DENIED) == 
   CFileException::accessDenied);

Requirements

Header: afx.h

See Also

Concepts

CFileException Class

CFileException Members

Hierarchy Chart

CFileException::ErrnoToException