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

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