Source code of Windows XP (NT5)
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.

102 lines
2.3 KiB

  1. // pws.h : main header file for the PWS application
  2. //
  3. #ifndef __AFXWIN_H__
  4. #error include 'stdafx.h' before including this file for PCH
  5. #endif
  6. #include "resource.h" // main symbols
  7. #define SZ_MB_INSTANCE_OBJECT _T("/LM/W3SVC/1")
  8. #define SZ_REG_PWS_PREFS _T("Software\\Microsoft\\IISPersonal")
  9. #define SZ_REG_PWS_SHOWTIPS _T("ShowTips")
  10. #define SZ_REG_PWS_CHART _T("ChartOption")
  11. // codes to create which initial right-hand pane
  12. enum {
  13. PANE_MAIN = 0,
  14. PANE_IE,
  15. PANE_ADVANCED
  16. };
  17. // codes to create which initial IE pane
  18. enum {
  19. INIT_IE_TOUR = 0,
  20. INIT_IE_WEBSITE,
  21. INIT_IE_PUBWIZ
  22. };
  23. // internal messages
  24. enum {
  25. WM_UPDATE_SERVER_STATE = WM_USER,
  26. WM_UPDATE_LOCATIONS,
  27. WM_UPDATE_BROWSEINFO,
  28. WM_UPDATE_LOGINFO,
  29. WM_UPDATE_TREEINFO,
  30. WM_MAJOR_SERVER_SHUTDOWN_ALERT,
  31. WM_PROCESS_REMOTE_COMMAND_INFO
  32. };
  33. // Timers
  34. enum {
  35. PWS_TIMER_CHECKFORSERVERRESTART = 0
  36. };
  37. // delays
  38. // number of milliseconds for the restart timer to wait
  39. #define TIMER_RESTART 5000
  40. // stucture use pass information from one instance to another
  41. #define PWS_INSTANCE_TRANSFER_SPACE_NAME _T("PWS_INSTANCE_TRANSFER_SPACE")
  42. typedef struct _PWS_INSTANCE_TRANSFER
  43. {
  44. // target pane to go to
  45. WORD iTargetPane;
  46. // target ie pane if iTargetPane is IE
  47. WORD iTargetIELocation;
  48. // additional IE information
  49. TCHAR tchIEURL;
  50. } PWS_INSTANCE_TRANSFER, *PPWS_INSTANCE_TRANSFER;
  51. /////////////////////////////////////////////////////////////////////////////
  52. // CPwsApp:
  53. // See pws.cpp for the implementation of this class
  54. //
  55. class CPwsApp : public CWinApp
  56. {
  57. public:
  58. CPwsApp();
  59. ~CPwsApp();
  60. void ShowTipsAtStartup();
  61. // Overrides
  62. // ClassWizard generated virtual function overrides
  63. //{{AFX_VIRTUAL(CPwsApp)
  64. public:
  65. virtual BOOL InitInstance();
  66. virtual BOOL OnIdle(LONG lCount);
  67. virtual void OnFinalRelease();
  68. //}}AFX_VIRTUAL
  69. // Implementation
  70. COleTemplateServer m_server;
  71. //{{AFX_MSG(CPwsApp)
  72. afx_msg void OnAppAbout();
  73. //}}AFX_MSG
  74. DECLARE_MESSAGE_MAP()
  75. protected:
  76. BOOL m_fShowedStartupTips;
  77. BOOL DealWithParameters();
  78. void SendCommandInfo( CWnd* pWnd );
  79. LPCSTR m_pSavedDocSz;
  80. };
  81. /////////////////////////////////////////////////////////////////////////////