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

// shrwiz.h : main header file for the SHRWIZ application
//
#if !defined(AFX_SHRWIZ_H__292A4F37_C1EC_11D2_8E4A_0000F87A3388__INCLUDED_)
#define AFX_SHRWIZ_H__292A4F37_C1EC_11D2_8E4A_0000F87A3388__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
#ifndef __AFXWIN_H__
#error include 'stdafx.h' before including this file for PCH
#endif
// this is the user-defined message
#define WM_SETPAGEFOCUS WM_APP+2
/* nturtl.h
NTSYSAPI
ULONG
NTAPI
RtlIsDosDeviceName_U(
PCWSTR DosFileName
);
*/
typedef ULONG (*PfnRtlIsDosDeviceName_U)(PCWSTR DosFileName);
/////////////////////////////////////////////////////////////////////////////
// CShrwizApp:
// See shrwiz.cpp for the implementation of this class
//
class CShrwizApp : public CWinApp
{
public:
CShrwizApp();
~CShrwizApp();
void Reset();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CShrwizApp)
public:
virtual BOOL InitInstance();
//}}AFX_VIRTUAL
// Implementation
BOOL GetTargetComputer();
inline void SetSecurity(IN PSECURITY_DESCRIPTOR pSecurityDescriptor)
{
if (m_pSD)
LocalFree((HLOCAL)m_pSD);
m_pSD = pSecurityDescriptor;
}
CPropertySheetEx *m_pWizard;
HFONT m_hTitleFont;
// filled in by initialization routine in shrwiz.cpp
CString m_cstrTargetComputer;
CString m_cstrUNCPrefix;
BOOL m_bIsLocal;
BOOL m_bServerSBS;
BOOL m_bServerSFM;
BOOL m_bCSC; // CSC is available on NT5+
HINSTANCE m_hLibSFM; // sfmapi.dll
HINSTANCE m_hLibNTDLL;// ntdll.dll
PfnRtlIsDosDeviceName_U m_pfnIsDosDeviceName;
// filled in by the folder page
CString m_cstrFolder;
// filled in by the client page
CString m_cstrShareName;
CString m_cstrShareDescription;
CString m_cstrMACShareName;
BOOL m_bSMB;
BOOL m_bSFM;
DWORD m_dwCSCFlag;
CString m_cstrFinishTitle;
CString m_cstrFinishStatus;
CString m_cstrFinishSummary;
CString m_cstrNextButtonText;
CString m_cstrFinishButtonText;
BOOL m_bFolderPathPageInitialized;
BOOL m_bShareNamePageInitialized;
BOOL m_bPermissionsPageInitialized;
// filled in by the permission page
PSECURITY_DESCRIPTOR m_pSD;
//{{AFX_MSG(CShrwizApp)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SHRWIZ_H__292A4F37_C1EC_11D2_8E4A_0000F87A3388__INCLUDED_)