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.

66 lines
2.1 KiB

  1. // **************************************************************************
  2. //
  3. // Copyright (c) 1997-1999 Microsoft Corporation.
  4. //
  5. // File: SAEventComm.H
  6. //
  7. // Description:
  8. // Server appliance event provider common define - header file defines
  9. // event provider common define
  10. //
  11. // History:
  12. // 12/1/2000, initial version by lustar.Li
  13. // **************************************************************************
  14. #ifndef __SAEVENTCOMM_H_
  15. #define __SAEVENTCOMM_H_
  16. //
  17. // Define the Event structure
  18. //
  19. typedef struct __SARESOURCEEVNET{
  20. WCHAR UniqueName[16]; //Appliance resource name being monitored
  21. UINT DisplayInformationID; //ID for the string or graphic resource value
  22. UINT CurrentState; //Current state - must be 0
  23. }SARESOURCEEVNET, *PSARESOURCEEVNET;
  24. #define SA_RESOURCEEVENT_CLASSNAME L"Microsoft_SA_ResourceEvent"
  25. #define SA_RESOURCEEVENT_UNIQUENAME L"UniqueName"
  26. #define SA_RESOURCEEVENT_DISPLAYINFORMATION L"DisplayInformationID"
  27. #define SA_RESOURCEEVENT_CURRENTSTATE L"CurrentState"
  28. #define SA_RESOURCEEVENT_DEFAULT_CURRENTSTATE 0x00000000
  29. //
  30. // Define the const for Net event provider
  31. //
  32. // Describe the event source
  33. #define SA_NET_EVENT (L"NetEvent")
  34. // Describe the message code for network
  35. #define SA_NET_STATUS_RECIVE_DATA 0x00000001
  36. #define SA_NET_STATUS_SEND_DATA 0x00000002
  37. #define SA_NET_STATUS_NO_CABLE 0x00000004
  38. // Define the display Information ID
  39. #define SA_NET_DISPLAY_IDLE 0x00000001
  40. #define SA_NET_DISPLAY_TRANSMITING 0x00000002
  41. #define SA_NET_DISPLAY_NO_CABLE 0x00000003
  42. //
  43. // Define the const for Disk event provider
  44. //
  45. #define SA_DISK_EVENT (L"DiskEvent")
  46. // Describe the message code for hard disk
  47. #define SA_DISK_STATUS_RECIVE_DATA 0x00000001
  48. #define SA_DISK_STATUS_SEND_DATA 0x00000002
  49. // Define the display Information ID for hard disk
  50. #define SA_DISK_DISPLAY_IDLE 0x00000001
  51. #define SA_DISK_DISPLAY_TRANSMITING 0x00000002
  52. #endif //#ifndef __SAEVENTCOMM_H_