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.

73 lines
1.7 KiB

  1. /*++
  2. Copyright (c) 1992-1997 Microsoft Corporation
  3. Module Name:
  4. contexts.h
  5. Abstract:
  6. Contains definitions for manipulating SNMP community structures.
  7. Environment:
  8. User Mode - Win32
  9. Revision History:
  10. 10-Feb-1997 DonRyan
  11. Rewrote to implement SNMPv2 support.
  12. --*/
  13. #ifndef _CONTEXTS_H_
  14. #define _CONTEXTS_H_
  15. ///////////////////////////////////////////////////////////////////////////////
  16. // //
  17. // Public definitions //
  18. // //
  19. ///////////////////////////////////////////////////////////////////////////////
  20. typedef struct _COMMUNITY_LIST_ENTRY {
  21. LIST_ENTRY Link;
  22. DWORD dwAccess;
  23. AsnOctetString Community;
  24. } COMMUNITY_LIST_ENTRY, *PCOMMUNITY_LIST_ENTRY;
  25. ///////////////////////////////////////////////////////////////////////////////
  26. // //
  27. // Public prototypes //
  28. // //
  29. ///////////////////////////////////////////////////////////////////////////////
  30. BOOL
  31. AllocCLE(
  32. PCOMMUNITY_LIST_ENTRY * ppCLE,
  33. LPWSTR pCommunity
  34. );
  35. BOOL
  36. FreeCLE(
  37. PCOMMUNITY_LIST_ENTRY pCLE
  38. );
  39. BOOL
  40. FindValidCommunity(
  41. PCOMMUNITY_LIST_ENTRY * ppCLE,
  42. AsnOctetString * pCommunity
  43. );
  44. BOOL
  45. LoadValidCommunities(
  46. BOOL bFirstCall
  47. );
  48. BOOL
  49. UnloadValidCommunities(
  50. );
  51. #endif // _CONTEXTS_H_