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.

91 lines
2.0 KiB

  1. /*++
  2. Copyright (c) 1992-1996 Microsoft Corporation
  3. Module Name:
  4. sess_tbl.h
  5. Abstract:
  6. Definition of all structures used by the Session table.
  7. Environment:
  8. User Mode - Win32
  9. Revision History:
  10. 10-May-1996 DonRyan
  11. Removed banner from Technology Dynamics, Inc.
  12. --*/
  13. #ifndef sess_tbl_h
  14. #define sess_tbl_h
  15. //--------------------------- PUBLIC CONSTANTS ------------------------------
  16. #include <snmp.h>
  17. #define SESS_CLIENT_FIELD 1
  18. #define SESS_USER_FIELD 2
  19. #define SESS_NUMCONS_FIELD 3
  20. #define SESS_NUMOPENS_FIELD 4
  21. #define SESS_TIME_FIELD 5
  22. #define SESS_IDLETIME_FIELD 6
  23. #define SESS_CLIENTTYPE_FIELD 7
  24. #define SESS_STATE_FIELD 8
  25. // State definitions
  26. #define SESS_STATE_ACTIVE 1
  27. #define SESS_STATE_DELETED 2
  28. //--------------------------- PUBLIC STRUCTS --------------------------------
  29. // Entries in the session table
  30. typedef struct sess_entry
  31. {
  32. AsnObjectIdentifier Oid;
  33. AsnDisplayString svSesClientName; // Index
  34. AsnDisplayString svSesUserName; // Index
  35. AsnInteger svSesNumConns;
  36. AsnInteger svSesNumOpens;
  37. AsnCounter svSesTime;
  38. AsnCounter svSesIdleTime;
  39. AsnInteger svSesClientType;
  40. AsnInteger svSesState;
  41. } SESS_ENTRY;
  42. // Session table definition
  43. typedef struct
  44. {
  45. UINT Len;
  46. SESS_ENTRY *Table;
  47. } SESSION_TABLE;
  48. //--------------------------- PUBLIC VARIABLES --(same as in module.c file)--
  49. extern SESSION_TABLE MIB_SessionTable ;
  50. //--------------------------- PUBLIC PROTOTYPES -----------------------------
  51. SNMPAPI MIB_sess_lmget(
  52. void
  53. );
  54. UINT MIB_sess_lmset(
  55. IN AsnObjectIdentifier *Index,
  56. IN UINT Field,
  57. IN AsnAny *Value
  58. );
  59. int MIB_sess_match(
  60. IN AsnObjectIdentifier *Oid,
  61. OUT UINT *Pos,
  62. IN BOOL Next
  63. );
  64. //------------------------------- END ---------------------------------------
  65. #endif /* sess_tbl_h */