AtlThrowLastWin32
Call this function to signal an error based on the result of the Windows function GetLastError.
inline void AtlThrowLastWin32( );
Заметки
This function traces the result of GetLastError to the debugger.
If _ATL_NO_EXCEPTIONS is not defined in an MFC project, this function throws a CMemoryException or a COleException based on the value returned by GetLastError.
If _ATL_NO_EXCEPTIONS is not defined in an ATL project, the function throws a CAtlException.
If _ATL_NO_EXCEPTIONS is defined, the function causes an assertion failure instead of throwing an exception.
Требования
Header: atldef.h