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.

85 lines
2.2 KiB

  1. /*++
  2. Copyright (c) 1991 Microsoft Corporation
  3. Module Name:
  4. almain.h
  5. Abstract:
  6. Private header file which defines the global data used for communication
  7. between the service control handler and the rest of the Alerter service.
  8. Author:
  9. Rita Wong (ritaw) 01-July-1991
  10. Revision History:
  11. --*/
  12. #ifndef _ALMAIN_INCLUDED_
  13. #define _ALMAIN_INCLUDED_
  14. #include "al.h" // Common include file for Alerter service
  15. #include <winsvc.h> // Service control APIs
  16. #include <lmsname.h> // SERVICE_ALERTER
  17. #include <lmerrlog.h> // Error log codes
  18. //
  19. // Maximum incoming mailslot message size in number of bytes
  20. //
  21. #define MAX_MAILSLOT_MESSAGE_SIZE 512
  22. //
  23. // Size of error message buffer
  24. //
  25. #define STRINGS_MAXIMUM 256
  26. //
  27. // Call AlHandleError with the appropriate error condition
  28. //
  29. #define AL_HANDLE_ERROR(ErrorCondition) \
  30. AlHandleError( \
  31. ErrorCondition, \
  32. status \
  33. );
  34. //
  35. // Call AlShutdownWorkstation with the appropriate termination code
  36. //
  37. #define AL_SHUTDOWN_WORKSTATION(TerminationCode) \
  38. AlShutdownWorkstation( \
  39. TerminationCode \
  40. );
  41. //-------------------------------------------------------------------//
  42. // //
  43. // Type definitions //
  44. // //
  45. //-------------------------------------------------------------------//
  46. typedef struct _AL_GLOBAL_DATA {
  47. //
  48. // Alerter service status
  49. //
  50. SERVICE_STATUS Status;
  51. //
  52. // Handle to set service status
  53. //
  54. SERVICE_STATUS_HANDLE StatusHandle;
  55. //
  56. // Handle to the Alerter service mailslot which receives alert
  57. // notifications from the Server service and Spooler
  58. //
  59. HANDLE MailslotHandle;
  60. } AL_GLOBAL_DATA, *PAL_GLOBAL_DATA;
  61. #endif // ifndef _ALMAIN_INCLUDED_