Source code of Windows XP (NT5)
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.

80 lines
1.7 KiB

  1. //
  2. // Copyright (c) 1991 Microsoft Corporation
  3. //
  4. #ifndef util_h
  5. #define util_h
  6. //-------------------------- MODULE DESCRIPTION ----------------------------
  7. //
  8. // util.h
  9. //
  10. //---------------------------------------------------------------------------
  11. //
  12. // Declarations, constants, and prototypes for SNMP utility functions.
  13. //
  14. //---------------------------------------------------------------------------
  15. //--------------------------- VERSION INFO ----------------------------------
  16. static char *util__h = "@(#) $Logfile: N:/agent/common/vcs/util.h_v $ $Revision: 1.5 $";
  17. //--------------------------- PUBLIC CONSTANTS ------------------------------
  18. #include <snmp.h>
  19. #define SNMP_MAX_OID_LEN 0x7f00 // Max number of elements in obj id
  20. //--------------------------- PUBLIC STRUCTS --------------------------------
  21. #include <winsock.h>
  22. typedef SOCKET SockDesc;
  23. //--------------------------- PUBLIC VARIABLES --(same as in module.c file)--
  24. //--------------------------- PUBLIC PROTOTYPES -----------------------------
  25. //
  26. // Debugging functions
  27. //
  28. #define DBGCONSOLEBASEDLOG 0x1
  29. #define DBGFILEBASEDLOG 0x2
  30. #define DBGEVENTLOGBASEDLOG 0x4
  31. VOID dbgprintf(
  32. IN INT nLevel,
  33. IN LPSTR szFormat,
  34. IN ...
  35. );
  36. //
  37. // Internal OID routines
  38. //
  39. void SNMP_oiddisp(
  40. IN AsnObjectIdentifier *Oid // OID to display
  41. );
  42. //
  43. // Buffer manipulation
  44. //
  45. void SNMP_bufrev(
  46. IN OUT BYTE *szStr, // Buffer to reverse
  47. IN UINT nLen // Length of buffer
  48. );
  49. void SNMP_bufcpyrev(
  50. OUT BYTE *szDest, // Destination buffer
  51. IN BYTE *szSource, // Source buffer
  52. IN UINT nLen // Length of buffers
  53. );
  54. //------------------------------- END ---------------------------------------
  55. #endif /* util_h */