Source code of Windows XP (NT5)
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.

70 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1992-1996 Microsoft Corporation
  3. Module Name:
  4. srvc_tbl.h
  5. Abstract:
  6. Define all of the structures and routines used in the service 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 srvc_tbl_h
  14. #define srvc_tbl_h
  15. //--------------------------- PUBLIC CONSTANTS ------------------------------
  16. #include <snmp.h>
  17. #define SRVC_NAME_FIELD 1
  18. #define SRVC_INSTALLED_FIELD 2
  19. #define SRVC_OPERATING_FIELD 3
  20. #define SRVC_UNINSTALLED_FIELD 4
  21. #define SRVC_PAUSED_FIELD 5
  22. //--------------------------- PUBLIC STRUCTS --------------------------------
  23. // Entries in the service table
  24. typedef struct srvc_entry
  25. {
  26. AsnObjectIdentifier Oid;
  27. AsnDisplayString svSvcName; // Index
  28. AsnInteger svSvcInstalledState;
  29. AsnInteger svSvcOperatingState;
  30. AsnInteger svSvcCanBeUninstalled;
  31. AsnInteger svSvcCanBePaused;
  32. } SRVC_ENTRY;
  33. // Service table definition
  34. typedef struct
  35. {
  36. UINT Len;
  37. SRVC_ENTRY *Table;
  38. } SRVC_TABLE;
  39. //--------------------------- PUBLIC VARIABLES --(same as in module.c file)--
  40. extern SRVC_TABLE MIB_SrvcTable;
  41. //--------------------------- PUBLIC PROTOTYPES -----------------------------
  42. SNMPAPI MIB_srvcs_lmget(
  43. void
  44. );
  45. //------------------------------- END ---------------------------------------
  46. #endif /* srvc_tbl_h */