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.

57 lines
2.7 KiB

  1. #include "stdafx.h"
  2. #define ARRAYSIZE(a) (sizeof(a)/sizeof(a[0]))
  3. BOOL AnswerIsYes(HWND hDlg,UINT id,LPCTSTR file);
  4. void CenterWindow(HWND hwndParent, HWND hwnd);
  5. VOID RemoveSpaces(LPTSTR szPath, DWORD dwPathSizeOf, LPTSTR szEdit);
  6. BOOL IsSpaces(LPCTSTR szPath);
  7. BOOL IsLocalComputer(IN LPCTSTR lpszComputer);
  8. BOOL GetInetsrvPath(LPCTSTR szMachineName,LPTSTR szReturnedPath,DWORD dwReturnedPathSizeOf);
  9. void AddPath(LPTSTR szPath,DWORD dwPathSizeOf, LPCTSTR szName );
  10. void AddFileExtIfNotExist(LPTSTR szPath, DWORD dwPathSizeOf, LPCTSTR szExt);
  11. BOOL BrowseForFile(LPTSTR strPathIn,LPTSTR strPathOut,DWORD dwPathOutSizeOf);
  12. BOOL BrowseForDir(LPTSTR strPath,LPTSTR strFile);
  13. int GetMultiStrSize(LPTSTR p);
  14. LPCTSTR GetEndOfMultiSz(LPCTSTR szMultiSz);
  15. void DumpStrInMultiStr(LPTSTR pMultiStr);
  16. BOOL FindStrInMultiStr(LPTSTR pMultiStr, LPTSTR StrToFind);
  17. BOOL RemoveStrInMultiStr(LPTSTR pMultiStr, LPTSTR StrToFind);
  18. BOOL IsMultiSzPaired(LPCTSTR pszBufferTemp1);
  19. BOOL IsFileExist(LPCTSTR szFile);
  20. BOOL IsFileExistRemote(LPCTSTR szMachineName,LPTSTR szFilePathToCheck,LPCTSTR szUserName,LPCTSTR szUserPassword);
  21. BOOL IsFileADirectory(LPCTSTR szFile);
  22. BOOL IsWebSitePath(IN LPCTSTR lpszMDPath);
  23. BOOL IsWebSiteVDirPath(IN LPCTSTR lpszMDPath,IN BOOL bOkayToQueryMetabase);
  24. BOOL IsFTPSitePath(IN LPCTSTR lpszMDPath);
  25. BOOL IsFTPSiteVDirPath(IN LPCTSTR lpszMDPath,IN BOOL bOkayToQueryMetabase);
  26. BOOL IsAppPoolPath(IN LPCTSTR lpszMDPath);
  27. BOOL IsMetabaseWebSiteKeyExistAuth(PCONNECTION_INFO pConnectionInfo,CString strMetabaseWebSite);
  28. BOOL IsMetabaseWebSiteKeyExist(CString strMetabaseWebSite);
  29. DWORD GetUniqueSite(CString strMetabaseServerNode);
  30. BOOL CleanMetaPath(LPTSTR *szPathToClean,DWORD *cbPathToCleanSize);
  31. void AddEndingMetabaseSlashIfNeedTo(LPTSTR szDestinationString,DWORD dwDestinationStringSizeOf);
  32. inline HRESULT SetBlanket(LPUNKNOWN pIUnk)
  33. {
  34. return CoSetProxyBlanket( pIUnk,
  35. RPC_C_AUTHN_WINNT, // NTLM authentication service
  36. RPC_C_AUTHZ_NONE, // default authorization service...
  37. NULL, // no mutual authentication
  38. RPC_C_AUTHN_LEVEL_DEFAULT, // authentication level
  39. RPC_C_IMP_LEVEL_IMPERSONATE, // impersonation level
  40. NULL, // use current token
  41. EOAC_NONE ); // no special capabilities
  42. }
  43. HRESULT DumpProxyInfo(IUnknown * punk);
  44. BOOL EstablishSession(LPCTSTR Server,LPTSTR Domain,LPTSTR UserName,LPTSTR Password,BOOL bEstablish);
  45. BOOL IsRootVDir(IN LPCTSTR lpszMDPath);
  46. void LaunchHelp(HWND hWndMain, DWORD_PTR dwWinHelpID);