Leaked source code of windows server 2003
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.
 
 
 
 
 
 

67 lines
1.2 KiB

/*++
Copyright (C) Microsoft Corporation, 1997 - 1999
Module Name:
sensutil.hxx
Abstract:
Header file containing common stuff for SENS.
Author:
Gopal Parupudi <GopalP>
[Notes:]
optional-notes
Revision History:
GopalP 10/11/1997 Start.
--*/
#ifndef __SENSUTIL_HXX__
#define __SENSUTIL_HXX__
//
// Macros
//
#define RequestSensLock() EnterCriticalSection(&gSensLock)
#define ReleaseSensLock() LeaveCriticalSection(&gSensLock)
#ifdef DBG
extern BOOL
ValidateError(
IN int Status,
IN unsigned int Count,
IN const int ErrorList[]
);
#define VALIDATE(_myValueToValidate) \
{ int _myTempValueToValidate = (_myValueToValidate); \
static const int _myValidateArray[] =
#define END_VALIDATE ; \
if (ValidateError(_myTempValueToValidate,\
sizeof(_myValidateArray)/sizeof(int), \
_myValidateArray) == 0) ASSERT(0);}
#else // !DBG
// Does nothing on retail systems
#define VALIDATE(_myValueToValidate) { int _bogusarray[] =
#define END_VALIDATE ; }
#endif // DBG
#endif// __SENSUTIL_HXX__