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.

110 lines
2.0 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1994.
  5. //
  6. // File: dlgnew.hxx
  7. //
  8. // Contents: "New Share" dialog
  9. //
  10. // History: 21-Feb-95 BruceFo Created
  11. //
  12. //--------------------------------------------------------------------------
  13. #ifndef __DLGNEW_HXX__
  14. #define __DLGNEW_HXX__
  15. #include "dlgbase.hxx"
  16. #include "resource.h"
  17. class CShareInfo;
  18. class CDlgNewShare : public CDialog
  19. {
  20. DECLARE_SIG;
  21. public:
  22. CDlgNewShare(
  23. IN HWND hwndParent
  24. );
  25. ~CDlgNewShare();
  26. static
  27. LRESULT CALLBACK
  28. SizeWndProc(
  29. IN HWND hwnd,
  30. IN UINT wMsg,
  31. IN WPARAM wParam,
  32. IN LPARAM lParam
  33. );
  34. INT_PTR
  35. DlgProc(
  36. IN HWND hwnd,
  37. IN UINT msg,
  38. IN WPARAM wParam,
  39. IN LPARAM lParam
  40. );
  41. //
  42. // Public data
  43. //
  44. // IN
  45. CShareInfo* m_pInfoList; // the main list of nodes!
  46. // IN/OUT
  47. CShareInfo* m_pShareInfo;
  48. // IN/OUT, The list of shares to replace. These shares are deleted on
  49. // apply. They have a different path, but the same share name as a
  50. // new share.
  51. CShareInfo* m_pReplaceList;
  52. private:
  53. BOOL
  54. _OnInitDialog(
  55. IN HWND hwnd
  56. );
  57. BOOL
  58. _OnCommand(
  59. IN HWND hwnd,
  60. IN WORD wNotifyCode,
  61. IN WORD wID,
  62. IN HWND hwndCtl
  63. );
  64. BOOL
  65. _OnOK(
  66. IN HWND hwnd
  67. );
  68. BOOL
  69. _OnPermissions(
  70. IN HWND hwnd
  71. );
  72. VOID
  73. _CacheMaxUses(
  74. IN HWND hwnd
  75. );
  76. //
  77. // Class variables
  78. //
  79. BOOL _bShareNameChanged;
  80. BOOL _bCommentChanged;
  81. int _wMaxUsers;
  82. BOOL _fSecDescModified;
  83. PSECURITY_DESCRIPTOR _pStoredSecDesc;
  84. WNDPROC _pfnAllowProc;
  85. };
  86. #endif // __DLGNEW_HXX__