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.

62 lines
1.8 KiB

  1. // CUsersInitialAlert.h: Definition of the UsersInitialAlert class
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_CUSERSINITIALALERT_H__FDCDC88B_1549_4341_BA20_54D6B2D657A5__INCLUDED_)
  5. #define AFX_CUSERSINITIALALERT_H__FDCDC88B_1549_4341_BA20_54D6B2D657A5__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include "resource.h" // main symbols
  10. #include "taskctx.h"
  11. #include "comdef.h"
  12. /////////////////////////////////////////////////////////////////////////////
  13. // UsersInitialAlert
  14. class ATL_NO_VTABLE CUsersInitialAlert :
  15. public CComObjectRootEx<CComSingleThreadModel>,
  16. public CComCoClass<CUsersInitialAlert,&CLSID_UsersInitialAlert>,
  17. public IDispatchImpl<IApplianceTask, &IID_IApplianceTask, &LIBID_USERSINITIALALERTLib>
  18. {
  19. public:
  20. CUsersInitialAlert() {}
  21. BEGIN_COM_MAP(CUsersInitialAlert)
  22. COM_INTERFACE_ENTRY(IDispatch)
  23. COM_INTERFACE_ENTRY(IApplianceTask)
  24. END_COM_MAP()
  25. DECLARE_REGISTRY_RESOURCEID(IDR_UsersInitialAlert)
  26. DECLARE_PROTECT_FINAL_CONSTRUCT()
  27. //
  28. public:
  29. //
  30. // IApplianceTask
  31. //
  32. STDMETHOD(OnTaskExecute)(
  33. /*[in]*/ IUnknown* pTaskContext
  34. );
  35. STDMETHOD(OnTaskComplete)(
  36. /*[in]*/ IUnknown* pTaskContext,
  37. /*[in]*/ LONG lTaskResult
  38. );
  39. private:
  40. HRESULT ParseTaskParameter(
  41. /*[in]*/ IUnknown *pTaskParameter
  42. );
  43. HRESULT RaiseUsersInitialAlert();
  44. BOOL GetApplianceName(
  45. /*[in]*/ LPWSTR* pstrComputerName
  46. );
  47. };
  48. #endif // !defined(AFX_CUSERSINITIALALERT_H__FDCDC88B_1549_4341_BA20_54D6B2D657A5__INCLUDED_)