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.

46 lines
1.8 KiB

  1. #include "icwconn.h"
  2. #include "icwacct.h"
  3. extern UINT g_uICWCONNUIFirst, g_uICWCONNUILast;
  4. #ifndef EXTERNAL_DIALOGID_MAXIMUM
  5. #define EXTERNAL_DIALOGID_MAXIMUM 3000
  6. #endif
  7. #ifndef EXTERNAL_DIALOGID_MINIMUM
  8. #define EXTERNAL_DIALOGID_MINIMUM 2000
  9. #endif
  10. class CICWExtension : public IICW50Extension
  11. {
  12. public:
  13. virtual BOOL STDMETHODCALLTYPE AddExternalPage(HPROPSHEETPAGE hPage, UINT uDlgID);
  14. virtual BOOL STDMETHODCALLTYPE RemoveExternalPage(HPROPSHEETPAGE hPage, UINT uDlgID);
  15. virtual BOOL STDMETHODCALLTYPE ExternalCancel(CANCELTYPE type);
  16. virtual BOOL STDMETHODCALLTYPE SetFirstLastPage(UINT uFirstPageDlgID, UINT uLastPageDlgID);
  17. virtual HWND STDMETHODCALLTYPE GetWizardHwnd(void)
  18. {
  19. return m_hWizardHWND;
  20. };
  21. virtual HRESULT STDMETHODCALLTYPE QueryInterface( REFIID theGUID, void** retPtr );
  22. virtual ULONG STDMETHODCALLTYPE AddRef( void );
  23. virtual ULONG STDMETHODCALLTYPE Release( void );
  24. CICWExtension( void );
  25. ~CICWExtension( void );
  26. HWND m_hWizardHWND;
  27. private:
  28. LONG m_lRefCount;
  29. };
  30. // This _has_ to be a pointer -- if you just instantiate directly, the compiler doesn't
  31. // correctly fill in the vtable, and thus it can't be treated as an IICWExtension pointer.
  32. extern CICWExtension *g_pCICWExtension;
  33. extern CICWExtension *g_pCINETCFGExtension;
  34. extern IICW50Apprentice *gpICWCONNApprentice;
  35. extern IICWApprenticeEx *gpINETCFGApprentice;
  36. extern BOOL LoadICWCONNUI( HWND hWizHWND, UINT uPrevDlgID, UINT uNextDlgID, DWORD dwFlags );
  37. extern BOOL LoadInetCfgUI( HWND hWizHWND, UINT uPrevDlgID, UINT uNextDlgID, DWORD dwFlags );