secureswitools/swisistools/source/sisxlibrary/utility_windows.cpp
branchRCL_3
changeset 19 7ca52d38f8c3
parent 0 ba25891c3a9e
child 62 5cc91383ab1e
equal deleted inserted replaced
18:3ba40be8e484 19:7ca52d38f8c3
   127 	}
   127 	}
   128 
   128 
   129 HANDLE MakeSISOpenFile(LPCWSTR pszFilename, DWORD dwAccessMode, DWORD dwCreateFlags)
   129 HANDLE MakeSISOpenFile(LPCWSTR pszFilename, DWORD dwAccessMode, DWORD dwCreateFlags)
   130 // Open file with Unicode filename correctly under Win95 and WinNT
   130 // Open file with Unicode filename correctly under Win95 and WinNT
   131 	{
   131 	{
   132 	return CreateFileW(pszFilename, dwAccessMode, 0, NULL, dwCreateFlags, FILE_ATTRIBUTE_NORMAL, NULL);
   132 	// Opening the file with FILE_SHARE_READ access, so that other processes can access
       
   133 	// the package file in parallel( Issue observed in Raptor with parallel builds udeb and urel)
       
   134 	return CreateFileW(pszFilename, dwAccessMode, 1, NULL, dwCreateFlags, FILE_ATTRIBUTE_NORMAL, NULL);
   133 	}
   135 	}
   134 
   136 
   135 BOOL MakeSISDeleteFile(LPCWSTR pszFilename)
   137 BOOL MakeSISDeleteFile(LPCWSTR pszFilename)
   136 	{
   138 	{
   137 	// Delete file with Unicode filename correctly under Win95 and WinNT
   139 	// Delete file with Unicode filename correctly under Win95 and WinNT