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.

104 lines
1.6 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. IN PWSTR pszMachine
  25. );
  26. ~CDlgNewShare();
  27. static
  28. LRESULT CALLBACK
  29. SizeWndProc(
  30. IN HWND hwnd,
  31. IN UINT wMsg,
  32. IN WPARAM wParam,
  33. IN LPARAM lParam
  34. );
  35. INT_PTR
  36. DlgProc(
  37. IN HWND hwnd,
  38. IN UINT msg,
  39. IN WPARAM wParam,
  40. IN LPARAM lParam
  41. );
  42. //
  43. // Public data
  44. //
  45. private:
  46. BOOL
  47. _OnInitDialog(
  48. IN HWND hwnd
  49. );
  50. BOOL
  51. _OnCommand(
  52. IN HWND hwnd,
  53. IN WORD wNotifyCode,
  54. IN WORD wID,
  55. IN HWND hwndCtl
  56. );
  57. BOOL
  58. _OnOK(
  59. IN HWND hwnd
  60. );
  61. BOOL
  62. _OnPermissions(
  63. IN HWND hwnd
  64. );
  65. VOID
  66. _CacheMaxUses(
  67. IN HWND hwnd
  68. );
  69. //
  70. // Class variables
  71. //
  72. PWSTR _pszMachine;
  73. CShareInfo* _pShareInfo;
  74. BOOL _bShareNameChanged;
  75. BOOL _bPathChanged;
  76. BOOL _bCommentChanged;
  77. int _wMaxUsers;
  78. BOOL _fSecDescModified;
  79. PSECURITY_DESCRIPTOR _pStoredSecDesc;
  80. WNDPROC _pfnAllowProc;
  81. };
  82. #endif // __DLGNEW_HXX__