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.

110 lines
1.9 KiB

  1. //*************************************************************
  2. //
  3. // Copyright (c) Microsoft Corporation 1998
  4. // All rights reserved
  5. //
  6. // events.hxx
  7. //
  8. //*************************************************************
  9. //
  10. // Reported reasons why policy failed to complete successfully. Every failed
  11. // policy run is placed into one of these categories.
  12. //
  13. #define ERRORREASON_CSPATH 1
  14. #define ERRORREASON_ENUM 2
  15. #define ERRORREASON_LOCAL 3
  16. #define ERRORREASON_PROCESS 4
  17. class CRsopAppContext;
  18. class CEvents : public CEventsBase
  19. {
  20. public:
  21. void
  22. Assign(
  23. DWORD ErrorStatus,
  24. CAppInfo * pAppInfo
  25. );
  26. void
  27. Reinstall(
  28. DWORD ErrorStatus,
  29. CAppInfo * pAppInfo
  30. );
  31. void
  32. Unassign(
  33. DWORD ErrorStatus,
  34. CAppInfo * pAppInfo
  35. );
  36. void
  37. Upgrade(
  38. CAppInfo * pNewApp,
  39. CAppInfo * pOldApp,
  40. BOOL bForceUninstall
  41. );
  42. void
  43. UpgradeAbort(
  44. DWORD ErrorStatus,
  45. CAppInfo * pNewApp,
  46. CAppInfo * pOldApp,
  47. BOOL bOldFailed
  48. );
  49. void
  50. UpgradeComplete(
  51. CAppInfo * pNewApp,
  52. CAppInfo * pOldApp
  53. );
  54. void
  55. RemoveUnmanaged(
  56. CAppInfo * pAppInfo
  57. );
  58. void
  59. PolicyStatus(
  60. DWORD ErrorStatus,
  61. DWORD ErrorReason
  62. );
  63. void
  64. PolicyAbort();
  65. void
  66. Install(
  67. DWORD ErrorStatus,
  68. CAppInfo* pAppInfo
  69. );
  70. void
  71. Uninstall(
  72. DWORD ErrorStatus,
  73. CAppInfo* pAppInfo
  74. );
  75. void
  76. RsopLoggingStatus( HRESULT hrStatus );
  77. private:
  78. void
  79. SetRsopFailureStatus(
  80. CAppInfo* pAppInfo,
  81. DWORD dwStatus,
  82. DWORD dwEventId);
  83. };