windows-nt/Source/XPSP1/NT/admin/activec/nodemgr/moreutil.h

50 lines
1.5 KiB
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
//+-------------------------------------------------------------------------
//
// Microsoft Windows
//
// Copyright (C) Microsoft Corporation, 1999 - 1999
//
// File: moreutil.h
//
//--------------------------------------------------------------------------
#ifndef __MMCUTIL_H__
#define __MMCUTIL_H__
/*
mmcutil.h
Some extra macros and definitions to aid the anti-MFC effort
*/
#if 1
#define MMC_TRY
#define MMC_CATCH
#else
#define MMC_TRY \
try {
#define MMC_CATCH \
} \
catch ( std::bad_alloc ) \
{ \
ASSERT( FALSE ); \
return E_OUTOFMEMORY; \
} \
catch ( std::exception ) \
{ \
ASSERT( FALSE ); \
return E_UNEXPECTED; \
}
#endif
BOOL _IsValidAddress(const void* lp, UINT nBytes, BOOL bReadWrite = TRUE);
#endif // __MMCUTIL_H__