windows-nt/Source/XPSP1/NT/net/snmp/subagent/lmmib2/lmcache.h

77 lines
1.8 KiB
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
/*++
Copyright (c) 1992-1996 Microsoft Corporation
Module Name:
lmcache.h
Abstract:
This routine declares all of the structures required to cache the Lan
Manager function calls.
Environment:
User Mode - Win32
Revision History:
10-May-1996 DonRyan
Removed banner from Technology Dynamics, Inc.
--*/
#ifndef lmcache_h
#define lmcache_h
//--------------------------- PUBLIC CONSTANTS ------------------------------
#define C_NETWKSTAGETINFO 1
#define C_NETSERVERGETINFO 2
#define C_NETSTATISTICSGET_SERVER 3
#define C_NETSTATISTICSGET_WORKST 4
#define C_NETSERVICEENUM 5
#define C_NETSESSIONENUM 6
#define C_NETUSERENUM 7
#define C_NETSHAREENUM 8
#define C_NETUSEENUM 9
#define C_NETWKSTAUSERGETINFO 10
#define C_NETSERVERENUM 11
#define C_NETWKSTAGETINFO_502 12
#define C_NETSERVERGETINFO_402 13
#define C_NETSERVERGETINFO_403 14
#define C_NETWKSTAGETINFO_101 15
#define C_PRNT_TABLE 16
#define C_USES_TABLE 17
#define C_DLOG_TABLE 18
#define C_SESS_TABLE 19
#define C_SRVR_TABLE 20
#define C_SRVC_TABLE 21
#define C_USER_TABLE 22
#define C_ODOM_TABLE 23
#define C_SHAR_TABLE 24
#define MAX_CACHE_ENTRIES 25
//--------------------------- PUBLIC STRUCTS --------------------------------
typedef struct cache_entry
{
time_t acquisition_time ; // time that data acquired
LPBYTE bufptr; // pointer to buffer
DWORD entriesread; // stuffed if appropriate
DWORD totalentries; // stuffed if appropriate
} CACHE_ENTRY ;
//--------------------------- PUBLIC VARIABLES --(same as in module.c file)--
extern CACHE_ENTRY cache_table[MAX_CACHE_ENTRIES] ;
extern time_t cache_expire[MAX_CACHE_ENTRIES];
//--------------------------- PUBLIC PROTOTYPES -----------------------------
//------------------------------- END ---------------------------------------
#endif /* lmcache_h */