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.

97 lines
2.2 KiB

  1. //***************************************************************************
  2. //
  3. // File:
  4. //
  5. // Module: MS SNMP Provider
  6. //
  7. // Purpose:
  8. //
  9. // Copyright (c) 1997-2001 Microsoft Corporation, All Rights Reserved
  10. //
  11. //***************************************************************************
  12. #ifndef _CSMIRDEF_H_
  13. #define _CSMIRDEF_H_
  14. //missing #defs
  15. #ifndef PPVOID
  16. typedef LPVOID * PPVOID;
  17. #endif //PPVOID
  18. #ifndef DllImport
  19. #define DllImport __declspec( dllimport )
  20. #endif
  21. #ifndef DllExport
  22. #define DllExport __declspec( dllexport )
  23. #endif
  24. //forward declarations and typedefs
  25. //main access classes
  26. class CSmir;
  27. class CSmirAdministrator;
  28. class CSmirInterogator;
  29. //enumerator classes
  30. class CEnumSmirMod;
  31. typedef CEnumSmirMod *PENUMSMIRMOD;
  32. class CEnumSmirGroup;
  33. typedef CEnumSmirGroup *PENUMSMIRGROUP;
  34. class CEnumSmirClass;
  35. typedef CEnumSmirClass * PENUMSMIRCLASS;
  36. class CEnumNotificationClass;
  37. typedef CEnumNotificationClass * PENUMNOTIFICATIONCLASS;
  38. class CEnumExtNotificationClass;
  39. typedef CEnumExtNotificationClass * PENUMEXTNOTIFICATIONCLASS;
  40. //handle classes
  41. class CSmirModuleHandle ;
  42. typedef CSmirModuleHandle *HSMIRMODULE;
  43. class CSmirGroupHandle ;
  44. typedef CSmirGroupHandle *HSMIRGROUP;
  45. class CSmirClassHandle;
  46. typedef CSmirClassHandle *HSMIRCLASS;
  47. class CSMIRClassFactory;
  48. class CModHandleClassFactory;
  49. class CGroupHandleClassFactory;
  50. class CClassHandleClassFactory;
  51. class CNotificationClassHandleClassFactory;
  52. class CExtNotificationClassHandleClassFactory;
  53. class CSmirConnObject;
  54. //simple defines
  55. //number of SMIR classes to register
  56. #define NUMBER_OF_SMIR_INTERFACES 6
  57. //connection point defines
  58. #define SMIR_CHANGE_EVENT 1
  59. #define SMIR_SIGNALED_CHANGE_EVENT 2
  60. //wait between successive smir changes
  61. #define SMIR_CHANGE_INTERVAL 10000 //in milliseconds
  62. #define DEFAULT_SNMP_VERSION 1
  63. //Event return values
  64. #define SMIR_THREAD_DELETED 100
  65. #define SMIR_THREAD_EXIT (SMIR_THREAD_DELETED+1)
  66. //WBEM_DEFINES
  67. #define RESERVED_WBEM_FLAG 0
  68. // WBEM constants
  69. #define WBEM_CLASS_PROPAGATION WBEM_FLAVOR_FLAG_PROPAGATE_TO_INSTANCE | WBEM_FLAVOR_FLAG_PROPAGATE_TO_DERIVED_CLASS
  70. #endif