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.

109 lines
2.7 KiB

  1. // shrwiz.h : main header file for the SHRWIZ application
  2. //
  3. #if !defined(AFX_SHRWIZ_H__292A4F37_C1EC_11D2_8E4A_0000F87A3388__INCLUDED_)
  4. #define AFX_SHRWIZ_H__292A4F37_C1EC_11D2_8E4A_0000F87A3388__INCLUDED_
  5. #if _MSC_VER >= 1000
  6. #pragma once
  7. #endif // _MSC_VER >= 1000
  8. #ifndef __AFXWIN_H__
  9. #error include 'stdafx.h' before including this file for PCH
  10. #endif
  11. // this is the user-defined message
  12. #define WM_SETPAGEFOCUS WM_APP+2
  13. /* nturtl.h
  14. NTSYSAPI
  15. ULONG
  16. NTAPI
  17. RtlIsDosDeviceName_U(
  18. PCWSTR DosFileName
  19. );
  20. */
  21. typedef ULONG (*PfnRtlIsDosDeviceName_U)(PCWSTR DosFileName);
  22. /////////////////////////////////////////////////////////////////////////////
  23. // CShrwizApp:
  24. // See shrwiz.cpp for the implementation of this class
  25. //
  26. class CShrwizApp : public CWinApp
  27. {
  28. public:
  29. CShrwizApp();
  30. ~CShrwizApp();
  31. void Reset();
  32. // Overrides
  33. // ClassWizard generated virtual function overrides
  34. //{{AFX_VIRTUAL(CShrwizApp)
  35. public:
  36. virtual BOOL InitInstance();
  37. //}}AFX_VIRTUAL
  38. // Implementation
  39. BOOL GetTargetComputer();
  40. inline void SetSecurity(IN PSECURITY_DESCRIPTOR pSecurityDescriptor)
  41. {
  42. if (m_pSD)
  43. LocalFree((HLOCAL)m_pSD);
  44. m_pSD = pSecurityDescriptor;
  45. }
  46. CPropertySheetEx *m_pWizard;
  47. HFONT m_hTitleFont;
  48. // filled in by initialization routine in shrwiz.cpp
  49. CString m_cstrTargetComputer;
  50. CString m_cstrUNCPrefix;
  51. BOOL m_bIsLocal;
  52. BOOL m_bServerSBS;
  53. BOOL m_bServerSFM;
  54. BOOL m_bCSC; // CSC is available on NT5+
  55. HINSTANCE m_hLibSFM; // sfmapi.dll
  56. HINSTANCE m_hLibNTDLL;// ntdll.dll
  57. PfnRtlIsDosDeviceName_U m_pfnIsDosDeviceName;
  58. // filled in by the folder page
  59. CString m_cstrFolder;
  60. // filled in by the client page
  61. CString m_cstrShareName;
  62. CString m_cstrShareDescription;
  63. CString m_cstrMACShareName;
  64. BOOL m_bSMB;
  65. BOOL m_bSFM;
  66. DWORD m_dwCSCFlag;
  67. CString m_cstrFinishTitle;
  68. CString m_cstrFinishStatus;
  69. CString m_cstrFinishSummary;
  70. CString m_cstrNextButtonText;
  71. CString m_cstrFinishButtonText;
  72. BOOL m_bFolderPathPageInitialized;
  73. BOOL m_bShareNamePageInitialized;
  74. BOOL m_bPermissionsPageInitialized;
  75. // filled in by the permission page
  76. PSECURITY_DESCRIPTOR m_pSD;
  77. //{{AFX_MSG(CShrwizApp)
  78. // NOTE - the ClassWizard will add and remove member functions here.
  79. // DO NOT EDIT what you see in these blocks of generated code !
  80. //}}AFX_MSG
  81. DECLARE_MESSAGE_MAP()
  82. };
  83. /////////////////////////////////////////////////////////////////////////////
  84. //{{AFX_INSERT_LOCATION}}
  85. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  86. #endif // !defined(AFX_SHRWIZ_H__292A4F37_C1EC_11D2_8E4A_0000F87A3388__INCLUDED_)