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.

140 lines
3.5 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. /*++
  3. Copyright (C) Microsoft Corporation, 1997 - 1999
  4. Module Name:
  5. LocalFileLoggingPage1.h
  6. Abstract:
  7. Header file for the CLocalFileLoggingPage1 class.
  8. This is our handler class for the first CMachineNode property page.
  9. See LocalFileLoggingPage1.cpp for implementation.
  10. Author:
  11. Michael A. Maguire 12/15/97
  12. Revision History:
  13. mmaguire 12/15/97 - created
  14. --*/
  15. //////////////////////////////////////////////////////////////////////////////
  16. #if !defined(_LOG_LOCAL_FILE_LOGGING_PAGE_1_H_)
  17. #define _LOG_LOCAL_FILE_LOGGING_PAGE_1_H_
  18. //////////////////////////////////////////////////////////////////////////////
  19. // BEGIN INCLUDES
  20. //
  21. // where we can find what this class derives from:
  22. //
  23. #include "PropertyPage.h"
  24. //
  25. //
  26. // where we can find what this class has or uses:
  27. //
  28. //
  29. // END INCLUDES
  30. //////////////////////////////////////////////////////////////////////////////
  31. class CLocalFileLoggingNode;
  32. class CLocalFileLoggingPage1 : public CIASPropertyPage<CLocalFileLoggingPage1>
  33. {
  34. public :
  35. CLocalFileLoggingPage1( LONG_PTR hNotificationHandle, CLocalFileLoggingNode *pLocalFileLoggingNode, TCHAR* pTitle = NULL, BOOL bOwnsNotificationHandle = FALSE );
  36. ~CLocalFileLoggingPage1();
  37. // This is the ID of the dialog resource we want for this class.
  38. // An enum is used here because the correct value of
  39. // IDD must be initialized before the base class's constructor is called
  40. enum { IDD = IDD_PROPPAGE_LOCAL_FILE_LOGGING1 };
  41. BEGIN_MSG_MAP(CLocalFileLoggingPage1)
  42. COMMAND_CODE_HANDLER(BN_CLICKED, OnChange)
  43. COMMAND_CODE_HANDLER(EN_CHANGE, OnChange)
  44. COMMAND_CODE_HANDLER(CBN_SELCHANGE, OnChange)
  45. MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
  46. COMMAND_ID_HANDLER( IDC_CHECK_LOCAL_FILE_LOGING_PAGE1__ENABLE_LOGGING, OnEnableLogging )
  47. CHAIN_MSG_MAP(CIASPropertyPage<CLocalFileLoggingPage1>)
  48. END_MSG_MAP()
  49. BOOL OnApply();
  50. BOOL OnQueryCancel();
  51. HRESULT GetHelpPath( LPTSTR szFilePath );
  52. // Pointer to stream into which this page's Sdo interface
  53. // pointer will be marshalled.
  54. LPSTREAM m_pStreamSdoAccountingMarshal;
  55. LPSTREAM m_pStreamSdoServiceControlMarshal;
  56. protected:
  57. // Interface pointer for this page's client's sdo.
  58. CComPtr<ISdo> m_spSdoAccounting;
  59. // Smart pointer to interface for telling service to reload data.
  60. CComPtr<ISdoServiceControl> m_spSdoServiceControl;
  61. // When we are passed a pointer to the client node in our constructor,
  62. // we will save away a pointer to its parent, as this is the node
  63. // which will need to receive an update message once we have
  64. // applied any changes.
  65. CSnapInItem * m_pParentOfNodeBeingModified;
  66. CSnapInItem * m_pNodeBeingModified;
  67. private:
  68. LRESULT OnInitDialog(
  69. UINT uMsg
  70. , WPARAM wParam
  71. , LPARAM lParam
  72. , BOOL& bHandled
  73. );
  74. LRESULT OnChange(
  75. UINT uMsg
  76. , WPARAM wParam
  77. , HWND hwnd
  78. , BOOL& bHandled
  79. );
  80. LRESULT OnEnableLogging(
  81. UINT uMsg
  82. , WPARAM wParam
  83. , HWND hwnd
  84. , BOOL& bHandled
  85. );
  86. // Helper utilities for correctly handling UI changes.
  87. void SetEnableLoggingDependencies( void );
  88. protected:
  89. // Dirty bits -- for keeping track of data which has been touched
  90. // so that we only save data we have to.
  91. BOOL m_fDirtyEnableLogging;
  92. BOOL m_fDirtyAccountingPackets;
  93. BOOL m_fDirtyAuthenticationPackets;
  94. BOOL m_fDirtyInterimAccounting;
  95. };
  96. #endif // _IAS_LOCAL_FILE_LOGGING_PAGE_1_H_