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.

70 lines
2.1 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997.
  5. //
  6. // File: S A U I . H
  7. //
  8. // Contents: Shared Acces connection UI object.
  9. //
  10. // Notes:
  11. //
  12. // Author: danielwe 16 Oct 1997
  13. //
  14. //----------------------------------------------------------------------------
  15. #pragma once
  16. #include "nsbase.h" // must be first to include atl
  17. #include "ncatlps.h"
  18. #include "resource.h"
  19. #include "netshell.h"
  20. #include "util.h"
  21. class CSharedAccessPage : public CPropSheetPage
  22. {
  23. public:
  24. BEGIN_MSG_MAP(CSharedAccessPage)
  25. MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
  26. MESSAGE_HANDLER(WM_DESTROY, OnDestroy)
  27. MESSAGE_HANDLER(WM_CONTEXTMENU, OnContextMenu);
  28. MESSAGE_HANDLER(WM_HELP, OnHelp);
  29. NOTIFY_CODE_HANDLER(PSN_QUERYCANCEL, OnCancel)
  30. NOTIFY_CODE_HANDLER(PSN_APPLY, OnApply)
  31. COMMAND_CODE_HANDLER (BN_CLICKED, OnClicked)
  32. END_MSG_MAP()
  33. CSharedAccessPage(
  34. IUnknown* punk,
  35. INetCfg* pnc,
  36. INetConnection* pconn,
  37. BOOLEAN fReadOnly,
  38. BOOLEAN fNeedReboot,
  39. BOOLEAN fAccessDenied,
  40. const DWORD * adwHelpIDs = NULL);
  41. ~CSharedAccessPage();
  42. LRESULT OnInitDialog(UINT uMsg, WPARAM wParam,
  43. LPARAM lParam, BOOL& bHandled);
  44. LRESULT OnContextMenu(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  45. LRESULT OnHelp(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  46. LRESULT OnDestroy(UINT uMsg, WPARAM wParam,
  47. LPARAM lParam, BOOL& bHandled);
  48. LRESULT OnApply(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
  49. LRESULT OnCancel(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
  50. LRESULT OnClicked (WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  51. private:
  52. INetConnection * m_pconn;
  53. INetSharedAccessConnection* m_pNetSharedAccessConnection;
  54. INetCfg * m_pnc;
  55. IUnknown * m_punk;
  56. BOOLEAN m_fReadOnly;
  57. const DWORD * m_adwHelpIDs;
  58. BOOLEAN m_fNetcfgInUse;
  59. };