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.
 
 
 
 
 
 

76 lines
1.9 KiB

/*++
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 */