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.

126 lines
3.1 KiB

  1. /*++
  2. Microsoft Windows
  3. Copyright (C) Microsoft Corporation, 1981 - 1999
  4. Module Name:
  5. controller.h
  6. Abstract:
  7. Author:
  8. Rahul Thombre (RahulTh) 4/30/1998
  9. Revision History:
  10. 4/30/1998 RahulTh
  11. Created this module.
  12. --*/
  13. #if !defined(AFX_CONTROLLER_H__90D62E7C_AEEC_11D1_A60A_00C04FC252BD__INCLUDED_)
  14. #define AFX_CONTROLLER_H__90D62E7C_AEEC_11D1_A60A_00C04FC252BD__INCLUDED_
  15. #if _MSC_VER >= 1000
  16. #pragma once
  17. #endif // _MSC_VER >= 1000
  18. #define MAIN_WINDOW_TITLE L"Wireless Link Main Window"
  19. // Controller.h : header file
  20. //
  21. /////////////////////////////////////////////////////////////////////////////
  22. // CController dialog
  23. class CController : public CDialog
  24. {
  25. // Construction
  26. public:
  27. LONG m_lAppIsDisplayed;
  28. HINSTANCE m_hLibApplet;
  29. CController(BOOL bNoForeground, CController* pParent = NULL); // standard constructor
  30. friend class CIrRecvProgress;
  31. // Dialog Data
  32. //{{AFX_DATA(CController)
  33. enum { IDD = IDD_CONTROLLER };
  34. // NOTE: the ClassWizard will add data members here
  35. //}}AFX_DATA
  36. // Overrides
  37. // ClassWizard generated virtual function overrides
  38. //{{AFX_VIRTUAL(CController)
  39. protected:
  40. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  41. virtual void PostNcDestroy();
  42. //}}AFX_VIRTUAL
  43. // Implementation
  44. protected:
  45. // Generated message map functions
  46. //{{AFX_MSG(CController)
  47. virtual void OnCancel();
  48. afx_msg void OnEndSession(BOOL Ending);
  49. afx_msg void OnClose ();
  50. afx_msg void OnTimer (UINT nTimerID);
  51. afx_msg void OnTriggerUI(WPARAM wParam, LPARAM lParam);
  52. afx_msg void OnDisplayUI(WPARAM wParam, LPARAM lParam);
  53. afx_msg void OnTriggerSettings(WPARAM wParam, LPARAM lParam);
  54. afx_msg void OnDisplaySettings(WPARAM wParam, LPARAM lParam);
  55. afx_msg void OnRecvInProgress (WPARAM wParam, LPARAM lParam);
  56. afx_msg void OnGetPermission (WPARAM wParam, LPARAM lParam);
  57. afx_msg void OnRecvFinished (WPARAM wParam, LPARAM lParam);
  58. afx_msg BOOL OnCopyData(CWnd* pWnd, COPYDATASTRUCT* pCopyDataStruct);
  59. afx_msg void OnStartTimer (WPARAM wParam, LPARAM lParam);
  60. afx_msg void OnKillTimer (WPARAM wParam, LPARAM lParam);
  61. //}}AFX_MSG
  62. DECLARE_MESSAGE_MAP()
  63. private:
  64. //member functions
  65. void InitTimeout (void);
  66. //data members
  67. #if 0
  68. CIrRecvProgress* m_pDlgRecvProgress;
  69. #endif
  70. CController* m_pParent;
  71. BOOL m_fHaveTimer;
  72. LONG m_lTimeout;
  73. };
  74. //{{AFX_INSERT_LOCATION}}
  75. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  76. struct MSG_RECEIVE_IN_PROGRESS
  77. {
  78. wchar_t * MachineName;
  79. COOKIE * pCookie;
  80. boolean bSuppressRecvConf;
  81. error_status_t status;
  82. };
  83. struct MSG_GET_PERMISSION
  84. {
  85. COOKIE Cookie;
  86. wchar_t * Name;
  87. boolean fDirectory;
  88. error_status_t status;
  89. };
  90. struct MSG_RECEIVE_FINISHED
  91. {
  92. COOKIE Cookie;
  93. error_status_t ReceiveStatus;
  94. error_status_t status;
  95. };
  96. #endif // !defined(AFX_CONTROLLER_H__90D62E7C_AEEC_11D1_A60A_00C04FC252BD__INCLUDED_)