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.

90 lines
1.4 KiB

  1. /*++ BUILD Version: 0001 // Increment this if a change has global effects
  2. Copyright (c) 1991 Microsoft Corporation
  3. Module Name:
  4. mib.h
  5. Abstract:
  6. SNMP Extension Agent for Windows NT.
  7. Created:
  8. 18-Feb-1995
  9. Revision History:
  10. --*/
  11. #ifndef _MIB_H_
  12. #define _MIB_H_
  13. //
  14. // Required include files.
  15. //
  16. #include <windows.h>
  17. #include <snmp.h>
  18. #include <lm.h>
  19. #include <iisinfo.h>
  20. #include <iis64.h>
  21. //
  22. // MIB Specifics.
  23. //
  24. #define MIB_PREFIX_LEN MIB_OidPrefix.idLength
  25. //
  26. // MIB function actions.
  27. //
  28. #define MIB_GET ASN_RFC1157_GETREQUEST
  29. #define MIB_SET ASN_RFC1157_SETREQUEST
  30. #define MIB_GETNEXT ASN_RFC1157_GETNEXTREQUEST
  31. #define MIB_GETFIRST (ASN_PRIVATE | ASN_CONSTRUCTOR | 0x0)
  32. //
  33. // MIB Variable access privileges.
  34. //
  35. #define MIB_ACCESS_READ 0
  36. #define MIB_ACCESS_WRITE 1
  37. #define MIB_ACCESS_READWRITE 2
  38. #define MIB_NOACCESS 3
  39. //
  40. // Macro to determine number of sub-oid's in array.
  41. //
  42. #define OID_SIZEOF( Oid ) ( sizeof Oid / sizeof(UINT) )
  43. //
  44. // Prefix to every variable in the MIB.
  45. //
  46. extern AsnObjectIdentifier MIB_OidPrefix;
  47. //
  48. // Function Prototypes.
  49. //
  50. UINT
  51. ResolveVarBind(
  52. RFC1157VarBind * VarBind,
  53. UINT PduAction,
  54. LPVOID Statistics
  55. );
  56. #endif // _MIB_H_