//*************************************************************************** // // File: // // Module: MS SNMP Provider // // Purpose: // // Copyright (c) 1997-2001 Microsoft Corporation, All Rights Reserved // //*************************************************************************** /*----------------------------------------------------------------- Filename: common.hpp Purpose : Provides common constant, typedef, macro and exception declarations. Written By: B.Rajeev -----------------------------------------------------------------*/ #ifndef __COMMON__ #define __COMMON__ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define DllImport __declspec( dllimport ) #define DllExport __declspec( dllexport ) #ifdef SNMPCLINIT #define DllImportExport DllExport #else #define DllImportExport DllImport #endif // maximum length of decimal dot notation addresses #define MAX_ADDRESS_LEN 100 // end of string character #define EOS '\0' #define MIN(a,b) ((a<=b)?a:b) // returns TRUE if i is in [min,max), else FALSE #define BETWEEN(i, min, max) ( ((i>=min)&&(i