windows-nt/Source/XPSP1/NT/net/snmp/newagent/inc/contexts.h
2020-09-26 16:20:57 +08:00

74 lines
1.7 KiB
C
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*++
Copyright (c) 1992-1997 Microsoft Corporation
Module Name:
contexts.h
Abstract:
Contains definitions for manipulating SNMP community structures.
Environment:
User Mode - Win32
Revision History:
10-Feb-1997 DonRyan
Rewrote to implement SNMPv2 support.
--*/
#ifndef _CONTEXTS_H_
#define _CONTEXTS_H_
///////////////////////////////////////////////////////////////////////////////
// //
// Public definitions //
// //
///////////////////////////////////////////////////////////////////////////////
typedef struct _COMMUNITY_LIST_ENTRY {
LIST_ENTRY Link;
DWORD dwAccess;
AsnOctetString Community;
} COMMUNITY_LIST_ENTRY, *PCOMMUNITY_LIST_ENTRY;
///////////////////////////////////////////////////////////////////////////////
// //
// Public prototypes //
// //
///////////////////////////////////////////////////////////////////////////////
BOOL
AllocCLE(
PCOMMUNITY_LIST_ENTRY * ppCLE,
LPWSTR pCommunity
);
BOOL
FreeCLE(
PCOMMUNITY_LIST_ENTRY pCLE
);
BOOL
FindValidCommunity(
PCOMMUNITY_LIST_ENTRY * ppCLE,
AsnOctetString * pCommunity
);
BOOL
LoadValidCommunities(
BOOL bFirstCall
);
BOOL
UnloadValidCommunities(
);
#endif // _CONTEXTS_H_