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.

39 lines
2.6 KiB

  1. DWORD atodw(LPCTSTR lpszData);
  2. int CreateAnEmptyFile(CString szTheFullPath);
  3. BOOL CleanPathString(LPTSTR szPath);
  4. BOOL CreateLayerDirectory(CString &str);
  5. BOOL ReturnFileNameOnly(LPCTSTR lpFullPath, LPTSTR lpReturnFileName);
  6. BOOL ReturnFilePathOnly(LPCTSTR lpFullPath, LPTSTR lpReturnPathOnly);
  7. BOOL IsFileExist(LPCTSTR szFile);
  8. BOOL IsFileExist_NormalOrCompressed(LPCTSTR szFile);
  9. BOOL IsValidDriveType(LPTSTR szRoot);
  10. BOOL IsValidDirectoryName(LPTSTR lpszPath);
  11. int IsThisDriveNTFS(IN LPTSTR FileName);
  12. void MakePath(LPTSTR lpPath);
  13. void AddPath(LPTSTR szPath, LPCTSTR szName );
  14. CString AddPath(CString szPath, LPCTSTR szName );
  15. BOOL AppendDir(LPCTSTR szParentDir, LPCTSTR szSubDir, LPTSTR szResult);
  16. BOOL InetDeleteFile(LPCTSTR szFileName);
  17. BOOL InetCopyFile( LPCTSTR szSrc, LPCTSTR szDest);
  18. void InetGetFilePath(LPCTSTR szFile, LPTSTR szPath);
  19. BOOL RecRemoveEmptyDir(LPCTSTR szName);
  20. BOOL RecRemoveDir(LPCTSTR szName, BOOL bRemoveDirectoryItself = TRUE );
  21. BOOL VerCmp(LPTSTR szSrcVerString, LPTSTR szDestVerString);
  22. int InstallInfSection_NoFiles(HINF InfHandle,TCHAR szINFFileName[],TCHAR szSectionName[]);
  23. int InstallInfSection(HINF InfHandle,TCHAR szINFFileName[],TCHAR szSectionName[]);
  24. DWORD GrantUserAccessToFile(IN LPTSTR FileName,IN LPTSTR TrusteeName);
  25. void MakeSureDirAclsHaveAtLeastRead(LPTSTR lpszDirectoryPath);
  26. DWORD SetAccessOnFile(IN LPTSTR FileName, BOOL bDoForAdmin);
  27. int IsFileLessThanThisVersion(IN LPCTSTR lpszFullFilePath, IN DWORD dwNtopMSVer, IN DWORD dwNtopLSVer);
  28. void DeleteFilesWildcard(TCHAR *szDir, TCHAR *szFileName);
  29. DWORD ReturnFileSize(LPCTSTR myFileName);
  30. CString ReturnUniqueFileName(CString csInputFullName);
  31. DWORD RemovePrincipalFromFileAcl(IN TCHAR *pszFile,IN LPTSTR szPrincipal);
  32. #ifndef _CHICAGO_
  33. DWORD SetDirectorySecurity(IN LPCTSTR szDirPath,IN LPCTSTR szPrincipal,IN INT iAceType,IN DWORD dwAccessMask,IN DWORD dwInheritMask,BOOL DontInheritFromParentAndOverWriteAccess);
  34. DWORD SetRegistryKeySecurity(IN HKEY hkeyRootKey,IN LPCTSTR szKeyPath,IN LPCTSTR szPrincipal,IN DWORD dwAccessMask,IN DWORD dwInheritMask,IN BOOL bDoSubKeys, IN LPTSTR szExclusiveList = NULL);
  35. DWORD SetRegistryKeySecurityAdmin(HKEY hkey, DWORD samDesired,PSECURITY_DESCRIPTOR* ppsdOld);
  36. DWORD SetAccessOnDirOrFile(IN TCHAR *pszFile,PSID psidGroup,INT iAceType,DWORD dwAccessMask,DWORD dwInheritMask,PSECURITY_DESCRIPTOR* ppsd,BOOL DontInheritFromParentAndOverWriteAccess);
  37. DWORD SetAccessOnRegKey(HKEY hkey, PSID psidGroup,DWORD dwAccessMask,DWORD dwInheritMask,PSECURITY_DESCRIPTOR* ppsd);
  38. #endif