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.

59 lines
2.4 KiB

  1. #ifndef _INC_ICWCONN_H
  2. #define _INC_ICWCONN_H
  3. #ifndef APPRENTICE_DEF
  4. #define APPRENTICE_DEF
  5. #define EXTERNAL_DIALOGID_MINIMUM 2000
  6. #define EXTERNAL_DIALOGID_MAXIMUM 3000
  7. typedef enum
  8. {
  9. CANCEL_PROMPT = 0,
  10. CANCEL_SILENT,
  11. CANCEL_REBOOT
  12. } CANCELTYPE;
  13. #endif
  14. // {7D857593-EAAE-11D1-AE03-0000F87734F0}
  15. DEFINE_GUID(IID_IICW50Extension, 0x7d857593, 0xeaae, 0x11d1, 0xae, 0x3, 0x0, 0x0, 0xf8, 0x77, 0x34, 0xf0);
  16. interface IICW50Extension : public IUnknown
  17. {
  18. public:
  19. virtual BOOL STDMETHODCALLTYPE AddExternalPage(HPROPSHEETPAGE hPage, UINT uDlgID) = 0;
  20. virtual BOOL STDMETHODCALLTYPE RemoveExternalPage(HPROPSHEETPAGE hPage, UINT uDlgID) = 0;
  21. virtual BOOL STDMETHODCALLTYPE ExternalCancel(CANCELTYPE type) = 0;
  22. virtual BOOL STDMETHODCALLTYPE SetFirstLastPage(UINT uFirstPageDlgID, UINT uLastPageDlgID) = 0;
  23. virtual HWND STDMETHODCALLTYPE GetWizardHwnd(void) = 0;
  24. };
  25. // IICW50Apprentice::Save error values
  26. // IICW50Apprentice::AddWizardPages flags
  27. // {7D857594-EAAE-11D1-AE03-0000F87734F0}
  28. DEFINE_GUID(IID_IICW50Apprentice, 0x7d857594, 0xeaae, 0x11d1, 0xae, 0x3, 0x0, 0x0, 0xf8, 0x77, 0x34, 0xf0);
  29. interface IICW50Apprentice : public IUnknown
  30. {
  31. public:
  32. virtual HRESULT STDMETHODCALLTYPE Initialize(IICW50Extension *pExt) = 0;
  33. virtual HRESULT STDMETHODCALLTYPE AddWizardPages(DWORD dwFlags) = 0;
  34. virtual HRESULT STDMETHODCALLTYPE Save(HWND hwnd, DWORD *pdwError) = 0;
  35. virtual HRESULT STDMETHODCALLTYPE SetPrevNextPage(UINT uPrevPageDlgID, UINT uNextPageDlgID) = 0;
  36. virtual HRESULT STDMETHODCALLTYPE SetStateDataFromExeToDll(LPCMNSTATEDATA lpData) = 0;
  37. virtual HRESULT STDMETHODCALLTYPE SetStateDataFromDllToExe(LPCMNSTATEDATA lpData) = 0;
  38. virtual HRESULT STDMETHODCALLTYPE ProcessCustomFlags(DWORD dwFlags) = 0;
  39. };
  40. // ICWCONN's Apprentice CLSID
  41. // This is used to import wizard pages from an external entity.
  42. // {7D857595-EAAE-11D1-AE03-0000F87734F0}
  43. DEFINE_GUID(CLSID_ApprenticeICWCONN, 0x7d857595, 0xeaae, 0x11d1, 0xae, 0x3, 0x0, 0x0, 0xf8, 0x77, 0x34, 0xf0);
  44. //ICWCONN1's Apprentice CLSID
  45. // This is used to share ICWCONN1's wizard pages with an external entity.
  46. // {7D857596-EAAE-11D1-AE03-0000F87734F0}
  47. DEFINE_GUID(CLSID_ApprenticeICWCONN1, 0x7d857596, 0xeaae, 0x11d1, 0xae, 0x3, 0x0, 0x0, 0xf8, 0x77, 0x34, 0xf0);
  48. #endif // _INC_ICWCONN_H