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.

79 lines
2.0 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. // Copyright (c) 2000, Microsoft Corporation, All rights reserved
  3. //
  4. // NCEvents.h
  5. //
  6. // This file is the interface to using non-COM events within ESS.
  7. //
  8. #pragma once
  9. /*
  10. #ifdef __cplusplus
  11. extern "C" {
  12. #endif
  13. */
  14. BOOL InitNCEvents();
  15. void DeinitNCEvents();
  16. BOOL WINAPI NCFireEvent(DWORD dwIndex, ...);
  17. BOOL WINAPI NCIsEventActive(DWORD dwIndex);
  18. /*
  19. #ifdef __cplusplus
  20. }
  21. #endif
  22. */
  23. // Use this index with g_hNCEvents
  24. enum NCE_INDEX
  25. {
  26. NEVENT_BAD_ACCOUNT_NAME,
  27. NEVENT_CALL_TO_FUNCTION_FAILED,
  28. NEVENT_CALL_TO_FUNCTION_FAILED_II,
  29. NEVENT_FIRST_LOGON_FAILED,
  30. NEVENT_REVERTED_TO_LASTKNOWNGOOD,
  31. NEVENT_CONNECTION_TIMEOUT,
  32. NEVENT_READFILE_TIMEOUT,
  33. NEVENT_TRANSACT_TIMEOUT,
  34. NEVENT_TRANSACT_INVALID,
  35. NEVENT_SERVICE_CRASH,
  36. NEVENT_SERVICE_CRASH_NO_ACTION,
  37. NEVENT_SERVICE_NOT_INTERACTIVE,
  38. NEVENT_SERVICE_RECOVERY_FAILED,
  39. NEVENT_INVALID_DRIVER_DEPENDENCY,
  40. NEVENT_SERVICE_START_FAILED,
  41. NEVENT_CIRCULAR_DEPENDENCY_DEMAND,
  42. NEVENT_CIRCULAR_DEPENDENCY_AUTO,
  43. NEVENT_SERVICE_START_FAILED_NONE,
  44. NEVENT_SERVICE_START_FAILED_II,
  45. NEVENT_DEPEND_ON_LATER_SERVICE,
  46. NEVENT_SERVICE_START_FAILED_GROUP,
  47. NEVENT_DEPEND_ON_LATER_GROUP,
  48. NEVENT_SERVICE_START_HUNG,
  49. NEVENT_SEVERE_SERVICE_FAILED,
  50. NEVENT_TAKE_OWNERSHIP,
  51. NEVENT_BAD_SERVICE_STATE,
  52. NEVENT_SERVICE_EXIT_FAILED,
  53. NEVENT_SERVICE_EXIT_FAILED_SPECIFIC,
  54. NEVENT_BOOT_SYSTEM_DRIVERS_FAILED,
  55. NEVENT_SERVICE_CONTROL_SUCCESS,
  56. NEVENT_SERVICE_STATUS_SUCCESS,
  57. NEVENT_SERVICE_CONFIG_BACKOUT_FAILED,
  58. NEVENT_FIRST_LOGON_FAILED_II,
  59. NCE_InvalidIndex // This should always be the last one.
  60. };
  61. #ifndef NO_NCEVENTS
  62. #define FIRE_NCEVENT NCFireEvent
  63. #define IS_NCEVENT_ACTIVE(index) NCIsEventActive(index)
  64. #else
  65. #define FIRE_NCEVENT (1 ? (void)0 : NCFireEvent)
  66. #define IS_NCEVENT_ACTIVE(index) FALSE
  67. #endif
  68. #define ScLogEvent FIRE_NCEVENT