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.

275 lines
6.1 KiB

  1. //Copyright (c) 1998 - 1999 Microsoft Corporation
  2. #ifndef _TWIZ_H
  3. #define _TWIZ_H
  4. #include "baswdlg.h"
  5. #include "todlg.h"
  6. #include "asyncdlg.h"
  7. class CCompdata;
  8. //-----------------------------------------------------------------------------
  9. class CWelcome : public CDialogWizBase
  10. {
  11. HFONT m_hFont;
  12. public:
  13. BOOL OnInitDialog( HWND , WPARAM , LPARAM );
  14. static INT_PTR CALLBACK DlgProc( HWND , UINT , WPARAM , LPARAM );
  15. BOOL GetPropertySheetPage( PROPSHEETPAGE& );
  16. BOOL OnNotify( int , LPNMHDR , HWND );
  17. BOOL OnDestroy( );
  18. };
  19. //-----------------------------------------------------------------------------
  20. class CConType : public CDialogWizBase
  21. {
  22. CCompdata *m_pCompdata;
  23. int m_iOldSelection;
  24. public:
  25. CConType( CCompdata * );
  26. BOOL OnInitDialog( HWND , WPARAM , LPARAM );
  27. BOOL OnDestroy( );
  28. static INT_PTR CALLBACK DlgProc( HWND , UINT , WPARAM , LPARAM );
  29. BOOL GetPropertySheetPage( PROPSHEETPAGE& );
  30. BOOL OnNotify( int , LPNMHDR , HWND );
  31. BOOL SetConType( HWND );
  32. BOOL AddEntriesToConType( HWND );
  33. };
  34. //-----------------------------------------------------------------------------
  35. class CLan : public CDialogWizBase
  36. {
  37. CCompdata *m_pCompdata;
  38. public:
  39. CLan( CCompdata * );
  40. BOOL OnInitDialog( HWND , WPARAM , LPARAM );
  41. static INT_PTR CALLBACK DlgProc( HWND , UINT , WPARAM , LPARAM );
  42. BOOL GetPropertySheetPage( PROPSHEETPAGE& );
  43. BOOL OnCommand( WORD , WORD , HWND );
  44. BOOL OnNotify( int , LPNMHDR , HWND );
  45. };
  46. //-----------------------------------------------------------------------------
  47. class CSecurity : public CDialogWizBase
  48. {
  49. CCompdata *m_pCompdata;
  50. Encryption *m_pEncrypt;
  51. DWORD m_DefaultEncryptionLevelIndex;
  52. public:
  53. CSecurity( CCompdata * );
  54. BOOL OnInitDialog( HWND , WPARAM , LPARAM );
  55. static INT_PTR CALLBACK DlgProc( HWND , UINT , WPARAM , LPARAM );
  56. BOOL GetPropertySheetPage( PROPSHEETPAGE& );
  57. BOOL OnCommand( WORD , WORD , HWND );
  58. BOOL OnNotify( int , LPNMHDR , HWND );
  59. BOOL OnDestroy( );
  60. };
  61. //-----------------------------------------------------------------------------
  62. #if 0 // objects not used in connection wizard
  63. class CTimeout : public CDialogWizBase , public CTimeOutDlg
  64. {
  65. public:
  66. BOOL OnInitDialog( HWND , WPARAM , LPARAM );
  67. static INT_PTR CALLBACK DlgProc( HWND , UINT , WPARAM , LPARAM );
  68. BOOL GetPropertySheetPage( PROPSHEETPAGE& );
  69. BOOL OnCommand( WORD , WORD , HWND );
  70. int GetCBXSTATEindex( HWND );
  71. BOOL OnNotify( int , LPNMHDR , HWND );
  72. };
  73. //-----------------------------------------------------------------------------
  74. class CAutoLogon : public CDialogWizBase
  75. {
  76. public:
  77. BOOL OnInitDialog( HWND , WPARAM , LPARAM );
  78. static INT_PTR CALLBACK DlgProc( HWND , UINT , WPARAM , LPARAM );
  79. BOOL GetPropertySheetPage( PROPSHEETPAGE& );
  80. BOOL OnCommand( WORD , WORD , HWND );
  81. BOOL OnNotify( int , LPNMHDR , HWND );
  82. BOOL ConfirmPwd( HWND );
  83. };
  84. //-----------------------------------------------------------------------------
  85. class CInitProg : public CDialogWizBase
  86. {
  87. public:
  88. BOOL OnInitDialog( HWND , WPARAM , LPARAM );
  89. static INT_PTR CALLBACK DlgProc( HWND , UINT , WPARAM , LPARAM );
  90. BOOL GetPropertySheetPage( PROPSHEETPAGE& );
  91. BOOL OnCommand( WORD , WORD , HWND );
  92. BOOL OnNotify( int , LPNMHDR , HWND );
  93. };
  94. #endif
  95. //-----------------------------------------------------------------------------
  96. class CRemotectrl : public CDialogWizBase
  97. {
  98. public:
  99. BOOL OnInitDialog( HWND , WPARAM , LPARAM );
  100. static INT_PTR CALLBACK DlgProc( HWND , UINT , WPARAM , LPARAM );
  101. BOOL GetPropertySheetPage( PROPSHEETPAGE& );
  102. BOOL OnCommand( WORD , WORD , HWND );
  103. BOOL OnNotify( int , LPNMHDR , HWND );
  104. };
  105. #if 0
  106. //-----------------------------------------------------------------------------
  107. class CWallPaper : public CDialogWizBase
  108. {
  109. public:
  110. BOOL OnInitDialog( HWND , WPARAM , LPARAM );
  111. static INT_PTR CALLBACK DlgProc( HWND , UINT , WPARAM , LPARAM );
  112. BOOL GetPropertySheetPage( PROPSHEETPAGE& );
  113. BOOL OnNotify( int , LPNMHDR , HWND );
  114. };
  115. #endif
  116. //-----------------------------------------------------------------------------
  117. class CConProp : public CDialogWizBase , public IWizardProvider
  118. {
  119. CCompdata *m_pCompdata;
  120. CArrayT< HPROPSHEETPAGE > m_hOtherPages;
  121. UINT m_cRef;
  122. INT_PTR m_iOldSel;
  123. public:
  124. CConProp( CCompdata * );
  125. STDMETHOD( QueryInterface )( REFIID , LPVOID * );
  126. STDMETHOD_( ULONG , AddRef )( );
  127. STDMETHOD_( ULONG , Release )( );
  128. STDMETHOD( AddPage )( HPROPSHEETPAGE );
  129. BOOL OnInitDialog( HWND , WPARAM , LPARAM );
  130. static INT_PTR CALLBACK DlgProc( HWND , UINT , WPARAM , LPARAM );
  131. BOOL GetPropertySheetPage( PROPSHEETPAGE& );
  132. BOOL OnNotify( int , LPNMHDR , HWND );
  133. BOOL RemovePages( HWND );
  134. BOOL AddPages( HWND , int , LPTSTR );
  135. BOOL InsertThirdPartyPages( LPTSTR );
  136. };
  137. //-----------------------------------------------------------------------------
  138. class CAsync : public CAsyncDlg , public CDialogWizBase
  139. {
  140. CCompdata * m_pCompdata;
  141. public:
  142. CAsync( CCompdata * );
  143. BOOL OnInitDialog( HWND , WPARAM , LPARAM );
  144. static INT_PTR CALLBACK DlgProc( HWND , UINT , WPARAM , LPARAM );
  145. BOOL GetPropertySheetPage( PROPSHEETPAGE& );
  146. BOOL OnDestroy( );
  147. BOOL OnNotify( int , LPNMHDR , HWND );
  148. BOOL OnCommand( WORD , WORD , HWND );
  149. };
  150. //-----------------------------------------------------------------------------
  151. class CFin : public CDialogWizBase
  152. {
  153. CCompdata * m_pCompdata;
  154. HFONT m_hFont;
  155. public:
  156. CFin( CCompdata * );
  157. BOOL OnInitDialog( HWND , WPARAM , LPARAM );
  158. static INT_PTR CALLBACK DlgProc( HWND , UINT , WPARAM , LPARAM );
  159. BOOL GetPropertySheetPage( PROPSHEETPAGE& );
  160. BOOL OnNotify( int , LPNMHDR , HWND );
  161. BOOL OnDestroy( );
  162. };
  163. #endif // _TWIZ_H