mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.5 KiB
49 lines
1.5 KiB
//+-------------------------------------------------------------------------
|
|
//
|
|
// 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__
|
|
|
|
|
|
|
|
|