Lines Matching refs:PrivateFile
544 WIN_NT_EFI_FILE_PRIVATE *PrivateFile; in WinNtSimpleFileSystemOpenVolume() local
557 PrivateFile = AllocatePool (sizeof (WIN_NT_EFI_FILE_PRIVATE)); in WinNtSimpleFileSystemOpenVolume()
558 if (PrivateFile == NULL) { in WinNtSimpleFileSystemOpenVolume()
563 PrivateFile->FileName = AllocatePool (StrSize (Private->FilePath)); in WinNtSimpleFileSystemOpenVolume()
564 if (PrivateFile->FileName == NULL) { in WinNtSimpleFileSystemOpenVolume()
569 PrivateFile->FilePath = AllocatePool (StrSize (Private->FilePath)); in WinNtSimpleFileSystemOpenVolume()
570 if (PrivateFile->FilePath == NULL) { in WinNtSimpleFileSystemOpenVolume()
575 StrCpy (PrivateFile->FilePath, Private->FilePath); in WinNtSimpleFileSystemOpenVolume()
576 StrCpy (PrivateFile->FileName, PrivateFile->FilePath); in WinNtSimpleFileSystemOpenVolume()
577 PrivateFile->Signature = WIN_NT_EFI_FILE_PRIVATE_SIGNATURE; in WinNtSimpleFileSystemOpenVolume()
578 PrivateFile->WinNtThunk = Private->WinNtThunk; in WinNtSimpleFileSystemOpenVolume()
579 PrivateFile->SimpleFileSystem = This; in WinNtSimpleFileSystemOpenVolume()
580 PrivateFile->IsRootDirectory = TRUE; in WinNtSimpleFileSystemOpenVolume()
581 PrivateFile->IsDirectoryPath = TRUE; in WinNtSimpleFileSystemOpenVolume()
582 PrivateFile->IsOpenedByRead = TRUE; in WinNtSimpleFileSystemOpenVolume()
583 PrivateFile->EfiFile.Revision = EFI_SIMPLE_FILE_SYSTEM_PROTOCOL_REVISION; in WinNtSimpleFileSystemOpenVolume()
584 PrivateFile->EfiFile.Open = WinNtSimpleFileSystemOpen; in WinNtSimpleFileSystemOpenVolume()
585 PrivateFile->EfiFile.Close = WinNtSimpleFileSystemClose; in WinNtSimpleFileSystemOpenVolume()
586 PrivateFile->EfiFile.Delete = WinNtSimpleFileSystemDelete; in WinNtSimpleFileSystemOpenVolume()
587 PrivateFile->EfiFile.Read = WinNtSimpleFileSystemRead; in WinNtSimpleFileSystemOpenVolume()
588 PrivateFile->EfiFile.Write = WinNtSimpleFileSystemWrite; in WinNtSimpleFileSystemOpenVolume()
589 PrivateFile->EfiFile.GetPosition = WinNtSimpleFileSystemGetPosition; in WinNtSimpleFileSystemOpenVolume()
590 PrivateFile->EfiFile.SetPosition = WinNtSimpleFileSystemSetPosition; in WinNtSimpleFileSystemOpenVolume()
591 PrivateFile->EfiFile.GetInfo = WinNtSimpleFileSystemGetInfo; in WinNtSimpleFileSystemOpenVolume()
592 PrivateFile->EfiFile.SetInfo = WinNtSimpleFileSystemSetInfo; in WinNtSimpleFileSystemOpenVolume()
593 PrivateFile->EfiFile.Flush = WinNtSimpleFileSystemFlush; in WinNtSimpleFileSystemOpenVolume()
594 PrivateFile->IsValidFindBuf = FALSE; in WinNtSimpleFileSystemOpenVolume()
599 PrivateFile->DirHandle = PrivateFile->WinNtThunk->CreateFile ( in WinNtSimpleFileSystemOpenVolume()
600 PrivateFile->FilePath, in WinNtSimpleFileSystemOpenVolume()
609 if (PrivateFile->DirHandle == INVALID_HANDLE_VALUE) { in WinNtSimpleFileSystemOpenVolume()
617 Size = StrSize (PrivateFile->FilePath); in WinNtSimpleFileSystemOpenVolume()
627 StrCpy (TempFileName, PrivateFile->FilePath); in WinNtSimpleFileSystemOpenVolume()
630 …PrivateFile->LHandle = PrivateFile->WinNtThunk->FindFirstFile (TempFileName, &PrivateFile->FindBuf… in WinNtSimpleFileSystemOpenVolume()
633 if (PrivateFile->LHandle == INVALID_HANDLE_VALUE) { in WinNtSimpleFileSystemOpenVolume()
634 PrivateFile->IsValidFindBuf = FALSE; in WinNtSimpleFileSystemOpenVolume()
636 PrivateFile->IsValidFindBuf = TRUE; in WinNtSimpleFileSystemOpenVolume()
638 *Root = &PrivateFile->EfiFile; in WinNtSimpleFileSystemOpenVolume()
644 if (PrivateFile) { in WinNtSimpleFileSystemOpenVolume()
645 if (PrivateFile->FileName) { in WinNtSimpleFileSystemOpenVolume()
646 FreePool (PrivateFile->FileName); in WinNtSimpleFileSystemOpenVolume()
649 if (PrivateFile->FilePath) { in WinNtSimpleFileSystemOpenVolume()
650 FreePool (PrivateFile->FilePath); in WinNtSimpleFileSystemOpenVolume()
653 FreePool (PrivateFile); in WinNtSimpleFileSystemOpenVolume()
867 WIN_NT_EFI_FILE_PRIVATE *PrivateFile; in WinNtSimpleFileSystemOpen() local
914 PrivateFile = WIN_NT_EFI_FILE_PRIVATE_DATA_FROM_THIS (This); in WinNtSimpleFileSystemOpen()
915 …PrivateRoot = WIN_NT_SIMPLE_FILE_SYSTEM_PRIVATE_DATA_FROM_THIS (PrivateFile->SimpleFileSystem); in WinNtSimpleFileSystemOpen()
968 CopyMem (NewPrivateFile, PrivateFile, sizeof (WIN_NT_EFI_FILE_PRIVATE)); in WinNtSimpleFileSystemOpen()
970 NewPrivateFile->FilePath = AllocatePool (StrSize (PrivateFile->FileName)); in WinNtSimpleFileSystemOpen()
976 if (PrivateFile->IsDirectoryPath) { in WinNtSimpleFileSystemOpen()
977 StrCpy (NewPrivateFile->FilePath, PrivateFile->FileName); in WinNtSimpleFileSystemOpen()
979 StrCpy (NewPrivateFile->FilePath, PrivateFile->FilePath); in WinNtSimpleFileSystemOpen()
1153 LastError = PrivateFile->WinNtThunk->GetLastError (); in WinNtSimpleFileSystemOpen()
1339 WIN_NT_EFI_FILE_PRIVATE *PrivateFile; in WinNtSimpleFileSystemClose() local
1348 PrivateFile = WIN_NT_EFI_FILE_PRIVATE_DATA_FROM_THIS (This); in WinNtSimpleFileSystemClose()
1350 if (PrivateFile->LHandle != INVALID_HANDLE_VALUE) { in WinNtSimpleFileSystemClose()
1351 if (PrivateFile->IsDirectoryPath) { in WinNtSimpleFileSystemClose()
1352 PrivateFile->WinNtThunk->FindClose (PrivateFile->LHandle); in WinNtSimpleFileSystemClose()
1354 PrivateFile->WinNtThunk->CloseHandle (PrivateFile->LHandle); in WinNtSimpleFileSystemClose()
1357 PrivateFile->LHandle = INVALID_HANDLE_VALUE; in WinNtSimpleFileSystemClose()
1360 if (PrivateFile->IsDirectoryPath && PrivateFile->DirHandle != INVALID_HANDLE_VALUE) { in WinNtSimpleFileSystemClose()
1361 PrivateFile->WinNtThunk->CloseHandle (PrivateFile->DirHandle); in WinNtSimpleFileSystemClose()
1362 PrivateFile->DirHandle = INVALID_HANDLE_VALUE; in WinNtSimpleFileSystemClose()
1365 if (PrivateFile->FileName) { in WinNtSimpleFileSystemClose()
1366 FreePool (PrivateFile->FileName); in WinNtSimpleFileSystemClose()
1369 if (PrivateFile->FilePath) { in WinNtSimpleFileSystemClose()
1370 FreePool (PrivateFile->FilePath); in WinNtSimpleFileSystemClose()
1373 FreePool (PrivateFile); in WinNtSimpleFileSystemClose()
1405 WIN_NT_EFI_FILE_PRIVATE *PrivateFile; in WinNtSimpleFileSystemDelete() local
1414 PrivateFile = WIN_NT_EFI_FILE_PRIVATE_DATA_FROM_THIS (This); in WinNtSimpleFileSystemDelete()
1418 if (PrivateFile->IsDirectoryPath) { in WinNtSimpleFileSystemDelete()
1419 if (PrivateFile->LHandle != INVALID_HANDLE_VALUE) { in WinNtSimpleFileSystemDelete()
1420 PrivateFile->WinNtThunk->FindClose (PrivateFile->LHandle); in WinNtSimpleFileSystemDelete()
1423 if (PrivateFile->DirHandle != INVALID_HANDLE_VALUE) { in WinNtSimpleFileSystemDelete()
1424 PrivateFile->WinNtThunk->CloseHandle (PrivateFile->DirHandle); in WinNtSimpleFileSystemDelete()
1425 PrivateFile->DirHandle = INVALID_HANDLE_VALUE; in WinNtSimpleFileSystemDelete()
1428 if (PrivateFile->WinNtThunk->RemoveDirectory (PrivateFile->FileName)) { in WinNtSimpleFileSystemDelete()
1432 PrivateFile->WinNtThunk->CloseHandle (PrivateFile->LHandle); in WinNtSimpleFileSystemDelete()
1433 PrivateFile->LHandle = INVALID_HANDLE_VALUE; in WinNtSimpleFileSystemDelete()
1435 if (!PrivateFile->IsOpenedByRead) { in WinNtSimpleFileSystemDelete()
1436 if (PrivateFile->WinNtThunk->DeleteFile (PrivateFile->FileName)) { in WinNtSimpleFileSystemDelete()
1442 FreePool (PrivateFile->FileName); in WinNtSimpleFileSystemDelete()
1443 FreePool (PrivateFile->FilePath); in WinNtSimpleFileSystemDelete()
1444 FreePool (PrivateFile); in WinNtSimpleFileSystemDelete()
1526 WIN_NT_EFI_FILE_PRIVATE *PrivateFile; in WinNtSimpleFileSystemRead() local
1548 PrivateFile = WIN_NT_EFI_FILE_PRIVATE_DATA_FROM_THIS (This); in WinNtSimpleFileSystemRead()
1550 if (PrivateFile->LHandle == INVALID_HANDLE_VALUE) { in WinNtSimpleFileSystemRead()
1555 if (!PrivateFile->IsDirectoryPath) { in WinNtSimpleFileSystemRead()
1603 Status = PrivateFile->WinNtThunk->ReadFile ( in WinNtSimpleFileSystemRead()
1604 PrivateFile->LHandle, in WinNtSimpleFileSystemRead()
1616 if (!PrivateFile->IsValidFindBuf) { in WinNtSimpleFileSystemRead()
1624 NameSize = StrSize (PrivateFile->FindBuf.cFileName); in WinNtSimpleFileSystemRead()
1638 PrivateFile->WinNtThunk->GetTimeZoneInformation (&TimeZone); in WinNtSimpleFileSystemRead()
1640 PrivateFile->WinNtThunk->FileTimeToLocalFileTime ( in WinNtSimpleFileSystemRead()
1641 &PrivateFile->FindBuf.ftCreationTime, in WinNtSimpleFileSystemRead()
1642 &PrivateFile->FindBuf.ftCreationTime in WinNtSimpleFileSystemRead()
1645 … PrivateFile->WinNtThunk->FileTimeToSystemTime (&PrivateFile->FindBuf.ftCreationTime, &SystemTime); in WinNtSimpleFileSystemRead()
1649 PrivateFile->WinNtThunk->FileTimeToLocalFileTime ( in WinNtSimpleFileSystemRead()
1650 &PrivateFile->FindBuf.ftLastWriteTime, in WinNtSimpleFileSystemRead()
1651 &PrivateFile->FindBuf.ftLastWriteTime in WinNtSimpleFileSystemRead()
1654 …PrivateFile->WinNtThunk->FileTimeToSystemTime (&PrivateFile->FindBuf.ftLastWriteTime, &SystemTime); in WinNtSimpleFileSystemRead()
1658 Info->FileSize = PrivateFile->FindBuf.nFileSizeLow; in WinNtSimpleFileSystemRead()
1660 Info->PhysicalSize = PrivateFile->FindBuf.nFileSizeLow; in WinNtSimpleFileSystemRead()
1662 if (PrivateFile->FindBuf.dwFileAttributes & FILE_ATTRIBUTE_ARCHIVE) { in WinNtSimpleFileSystemRead()
1666 if (PrivateFile->FindBuf.dwFileAttributes & FILE_ATTRIBUTE_HIDDEN) { in WinNtSimpleFileSystemRead()
1670 if (PrivateFile->FindBuf.dwFileAttributes & FILE_ATTRIBUTE_SYSTEM) { in WinNtSimpleFileSystemRead()
1674 if (PrivateFile->FindBuf.dwFileAttributes & FILE_ATTRIBUTE_READONLY) { in WinNtSimpleFileSystemRead()
1678 if (PrivateFile->FindBuf.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) { in WinNtSimpleFileSystemRead()
1687 pw[Index] = PrivateFile->FindBuf.cFileName[Index]; in WinNtSimpleFileSystemRead()
1690 if (PrivateFile->WinNtThunk->FindNextFile (PrivateFile->LHandle, &PrivateFile->FindBuf)) { in WinNtSimpleFileSystemRead()
1691 PrivateFile->IsValidFindBuf = TRUE; in WinNtSimpleFileSystemRead()
1693 PrivateFile->IsValidFindBuf = FALSE; in WinNtSimpleFileSystemRead()
1747 WIN_NT_EFI_FILE_PRIVATE *PrivateFile; in WinNtSimpleFileSystemWrite() local
1757 PrivateFile = WIN_NT_EFI_FILE_PRIVATE_DATA_FROM_THIS (This); in WinNtSimpleFileSystemWrite()
1759 if (PrivateFile->LHandle == INVALID_HANDLE_VALUE) { in WinNtSimpleFileSystemWrite()
1764 if (PrivateFile->IsDirectoryPath) { in WinNtSimpleFileSystemWrite()
1769 if (PrivateFile->IsOpenedByRead) { in WinNtSimpleFileSystemWrite()
1774 Status = PrivateFile->WinNtThunk->WriteFile ( in WinNtSimpleFileSystemWrite()
1775 PrivateFile->LHandle, in WinNtSimpleFileSystemWrite()
1819 WIN_NT_EFI_FILE_PRIVATE *PrivateFile; in WinNtSimpleFileSystemSetPosition() local
1832 PrivateFile = WIN_NT_EFI_FILE_PRIVATE_DATA_FROM_THIS (This); in WinNtSimpleFileSystemSetPosition()
1834 if (PrivateFile->IsDirectoryPath) { in WinNtSimpleFileSystemSetPosition()
1840 Size = StrSize (PrivateFile->FileName); in WinNtSimpleFileSystemSetPosition()
1848 StrCpy (FileName, PrivateFile->FileName); in WinNtSimpleFileSystemSetPosition()
1851 if (PrivateFile->LHandle != INVALID_HANDLE_VALUE) { in WinNtSimpleFileSystemSetPosition()
1852 PrivateFile->WinNtThunk->FindClose (PrivateFile->LHandle); in WinNtSimpleFileSystemSetPosition()
1855 PrivateFile->LHandle = PrivateFile->WinNtThunk->FindFirstFile (FileName, &PrivateFile->FindBuf); in WinNtSimpleFileSystemSetPosition()
1857 if (PrivateFile->LHandle == INVALID_HANDLE_VALUE) { in WinNtSimpleFileSystemSetPosition()
1858 PrivateFile->IsValidFindBuf = FALSE; in WinNtSimpleFileSystemSetPosition()
1860 PrivateFile->IsValidFindBuf = TRUE; in WinNtSimpleFileSystemSetPosition()
1865 Status = (PrivateFile->LHandle == INVALID_HANDLE_VALUE) ? EFI_DEVICE_ERROR : EFI_SUCCESS; in WinNtSimpleFileSystemSetPosition()
1868 …PosLow = PrivateFile->WinNtThunk->SetFilePointer (PrivateFile->LHandle, (ULONG) 0, NULL, FILE_END); in WinNtSimpleFileSystemSetPosition()
1872 …PosLow = PrivateFile->WinNtThunk->SetFilePointer (PrivateFile->LHandle, (ULONG) Position, (PLONG)… in WinNtSimpleFileSystemSetPosition()
1911 WIN_NT_EFI_FILE_PRIVATE *PrivateFile; in WinNtSimpleFileSystemGetPosition() local
1921 PrivateFile = WIN_NT_EFI_FILE_PRIVATE_DATA_FROM_THIS (This); in WinNtSimpleFileSystemGetPosition()
1926 if (PrivateFile->IsDirectoryPath) { in WinNtSimpleFileSystemGetPosition()
1934 *Position = PrivateFile->WinNtThunk->SetFilePointer ( in WinNtSimpleFileSystemGetPosition()
1935 PrivateFile->LHandle, in WinNtSimpleFileSystemGetPosition()
1957 IN WIN_NT_EFI_FILE_PRIVATE *PrivateFile, in WinNtSimpleFileSystemFileInfo() argument
1991 RealFileName = PrivateFile->FileName; in WinNtSimpleFileSystemFileInfo()
2012 PrivateFile->WinNtThunk->GetFileInformationByHandle ( in WinNtSimpleFileSystemFileInfo()
2013 … PrivateFile->IsDirectoryPath ? PrivateFile->DirHandle : PrivateFile->LHandle, in WinNtSimpleFileSystemFileInfo()
2019 …PrivateFile->WinNtThunk->FileTimeToLocalFileTime(&FileInfo.ftCreationTime, &FileInfo.ftCreationTim… in WinNtSimpleFileSystemFileInfo()
2020 PrivateFile->WinNtThunk->FileTimeToSystemTime (&FileInfo.ftCreationTime, &SystemTime); in WinNtSimpleFileSystemFileInfo()
2028 …PrivateFile->WinNtThunk->FileTimeToLocalFileTime(&FileInfo.ftLastAccessTime, &FileInfo.ftLastAcces… in WinNtSimpleFileSystemFileInfo()
2029 PrivateFile->WinNtThunk->FileTimeToSystemTime (&FileInfo.ftLastAccessTime, &SystemTime); in WinNtSimpleFileSystemFileInfo()
2037 …PrivateFile->WinNtThunk->FileTimeToLocalFileTime(&FileInfo.ftLastWriteTime, &FileInfo.ftLastWriteT… in WinNtSimpleFileSystemFileInfo()
2038 PrivateFile->WinNtThunk->FileTimeToSystemTime (&FileInfo.ftLastWriteTime, &SystemTime); in WinNtSimpleFileSystemFileInfo()
2066 if (PrivateFile->IsDirectoryPath) { in WinNtSimpleFileSystemFileInfo()
2070 if (PrivateFile->IsRootDirectory) { in WinNtSimpleFileSystemFileInfo()
2125 WIN_NT_EFI_FILE_PRIVATE *PrivateFile; in WinNtSimpleFileSystemGetInfo() local
2145 PrivateFile = WIN_NT_EFI_FILE_PRIVATE_DATA_FROM_THIS (This); in WinNtSimpleFileSystemGetInfo()
2146 PrivateRoot = WIN_NT_SIMPLE_FILE_SYSTEM_PRIVATE_DATA_FROM_THIS (PrivateFile->SimpleFileSystem); in WinNtSimpleFileSystemGetInfo()
2151 Status = WinNtSimpleFileSystemFileInfo (PrivateFile, BufferSize, Buffer); in WinNtSimpleFileSystemGetInfo()
2169 DriveName = AllocatePool (StrSize (PrivateFile->FilePath) + 1); in WinNtSimpleFileSystemGetInfo()
2175 StrCpy (DriveName, PrivateFile->FilePath); in WinNtSimpleFileSystemGetInfo()
2203 NtStatus = PrivateFile->WinNtThunk->GetDiskFreeSpace ( in WinNtSimpleFileSystemGetInfo()
2228 NtStatus = PrivateFile->WinNtThunk->GetDiskFreeSpaceEx ( in WinNtSimpleFileSystemGetInfo()
2229 PrivateFile->FilePath, in WinNtSimpleFileSystemGetInfo()
2311 WIN_NT_EFI_FILE_PRIVATE *PrivateFile; in WinNtSimpleFileSystemSetInfo() local
2351 PrivateFile = WIN_NT_EFI_FILE_PRIVATE_DATA_FROM_THIS (This); in WinNtSimpleFileSystemSetInfo()
2352 …PrivateRoot = WIN_NT_SIMPLE_FILE_SYSTEM_PRIVATE_DATA_FROM_THIS (PrivateFile->SimpleF… in WinNtSimpleFileSystemSetInfo()
2436 Status = WinNtSimpleFileSystemFileInfo (PrivateFile, &OldInfoSize, NULL); in WinNtSimpleFileSystemSetInfo()
2449 Status = WinNtSimpleFileSystemFileInfo (PrivateFile, &OldInfoSize, OldFileInfo); in WinNtSimpleFileSystemSetInfo()
2455 OldFileName = AllocatePool (StrSize (PrivateFile->FileName)); in WinNtSimpleFileSystemSetInfo()
2461 StrCpy (OldFileName, PrivateFile->FileName); in WinNtSimpleFileSystemSetInfo()
2480 Size = StrSize (PrivateFile->FilePath); in WinNtSimpleFileSystemSetInfo()
2489 StrCpy (NewFileName, PrivateFile->FilePath); in WinNtSimpleFileSystemSetInfo()
2549 OldAttr = PrivateFile->WinNtThunk->GetFileAttributes (OldFileName); in WinNtSimpleFileSystemSetInfo()
2558 if (PrivateFile->IsOpenedByRead) { in WinNtSimpleFileSystemSetInfo()
2571 if (PrivateFile->LHandle != INVALID_HANDLE_VALUE) { in WinNtSimpleFileSystemSetInfo()
2572 if (PrivateFile->IsDirectoryPath) { in WinNtSimpleFileSystemSetInfo()
2573 PrivateFile->WinNtThunk->FindClose (PrivateFile->LHandle); in WinNtSimpleFileSystemSetInfo()
2575 PrivateFile->WinNtThunk->CloseHandle (PrivateFile->LHandle); in WinNtSimpleFileSystemSetInfo()
2576 PrivateFile->LHandle = INVALID_HANDLE_VALUE; in WinNtSimpleFileSystemSetInfo()
2580 if (PrivateFile->IsDirectoryPath && PrivateFile->DirHandle != INVALID_HANDLE_VALUE) { in WinNtSimpleFileSystemSetInfo()
2581 PrivateFile->WinNtThunk->CloseHandle (PrivateFile->DirHandle); in WinNtSimpleFileSystemSetInfo()
2582 PrivateFile->DirHandle = INVALID_HANDLE_VALUE; in WinNtSimpleFileSystemSetInfo()
2585 NtStatus = PrivateFile->WinNtThunk->MoveFile (OldFileName, NewFileName); in WinNtSimpleFileSystemSetInfo()
2591 FreePool (PrivateFile->FileName); in WinNtSimpleFileSystemSetInfo()
2593 PrivateFile->FileName = AllocatePool (StrSize (NewFileName)); in WinNtSimpleFileSystemSetInfo()
2594 if (PrivateFile->FileName == NULL) { in WinNtSimpleFileSystemSetInfo()
2599 StrCpy (PrivateFile->FileName, NewFileName); in WinNtSimpleFileSystemSetInfo()
2607 if (!PrivateFile->IsDirectoryPath) { in WinNtSimpleFileSystemSetInfo()
2608 PrivateFile->LHandle = PrivateFile->WinNtThunk->CreateFile ( in WinNtSimpleFileSystemSetInfo()
2610 … PrivateFile->IsOpenedByRead ? GENERIC_READ : GENERIC_READ | GENERIC_WRITE, in WinNtSimpleFileSystemSetInfo()
2623 if (PrivateFile->WinNtThunk->FlushFileBuffers (PrivateFile->LHandle) == 0) { in WinNtSimpleFileSystemSetInfo()
2628 PrivateFile->DirHandle = PrivateFile->WinNtThunk->CreateFile ( in WinNtSimpleFileSystemSetInfo()
2630 … PrivateFile->IsOpenedByRead ? GENERIC_READ : GENERIC_READ | GENERIC_WRITE, in WinNtSimpleFileSystemSetInfo()
2639 PrivateFile->LHandle = PrivateFile->WinNtThunk->FindFirstFile (TempFileName, &FindBuf); in WinNtSimpleFileSystemSetInfo()
2647 NtStatus = PrivateFile->WinNtThunk->SetFileAttributes (OldFileName, OldAttr); in WinNtSimpleFileSystemSetInfo()
2659 if (!PrivateFile->IsDirectoryPath) { in WinNtSimpleFileSystemSetInfo()
2660 PrivateFile->LHandle = PrivateFile->WinNtThunk->CreateFile ( in WinNtSimpleFileSystemSetInfo()
2662 … PrivateFile->IsOpenedByRead ? GENERIC_READ : GENERIC_READ | GENERIC_WRITE, in WinNtSimpleFileSystemSetInfo()
2670 PrivateFile->DirHandle = PrivateFile->WinNtThunk->CreateFile ( in WinNtSimpleFileSystemSetInfo()
2672 … PrivateFile->IsOpenedByRead ? GENERIC_READ : GENERIC_READ | GENERIC_WRITE, in WinNtSimpleFileSystemSetInfo()
2681 PrivateFile->LHandle = PrivateFile->WinNtThunk->FindFirstFile (TempFileName, &FindBuf); in WinNtSimpleFileSystemSetInfo()
2695 if (PrivateFile->IsDirectoryPath) { in WinNtSimpleFileSystemSetInfo()
2700 if (PrivateFile->IsOpenedByRead || OldFileInfo->Attribute & EFI_FILE_READ_ONLY) { in WinNtSimpleFileSystemSetInfo()
2715 if (PrivateFile->WinNtThunk->SetEndOfFile (PrivateFile->LHandle) == 0) { in WinNtSimpleFileSystemSetInfo()
2739 if (!PrivateFile->WinNtThunk->SystemTimeToFileTime ( in WinNtSimpleFileSystemSetInfo()
2746 if (!PrivateFile->WinNtThunk->LocalFileTimeToFileTime ( in WinNtSimpleFileSystemSetInfo()
2761 if (!PrivateFile->WinNtThunk->SystemTimeToFileTime ( in WinNtSimpleFileSystemSetInfo()
2768 if (!PrivateFile->WinNtThunk->LocalFileTimeToFileTime ( in WinNtSimpleFileSystemSetInfo()
2783 if (!PrivateFile->WinNtThunk->SystemTimeToFileTime ( in WinNtSimpleFileSystemSetInfo()
2790 if (!PrivateFile->WinNtThunk->LocalFileTimeToFileTime ( in WinNtSimpleFileSystemSetInfo()
2797 if (!PrivateFile->WinNtThunk->SetFileTime ( in WinNtSimpleFileSystemSetInfo()
2798 … PrivateFile->IsDirectoryPath ? PrivateFile->DirHandle : PrivateFile->LHandle, in WinNtSimpleFileSystemSetInfo()
2839 NtStatus = PrivateFile->WinNtThunk->SetFileAttributes (NewFileName, NewAttr); in WinNtSimpleFileSystemSetInfo()
2898 WIN_NT_EFI_FILE_PRIVATE *PrivateFile; in WinNtSimpleFileSystemFlush() local
2908 PrivateFile = WIN_NT_EFI_FILE_PRIVATE_DATA_FROM_THIS (This); in WinNtSimpleFileSystemFlush()
2910 if (PrivateFile->LHandle == INVALID_HANDLE_VALUE) { in WinNtSimpleFileSystemFlush()
2915 if (PrivateFile->IsDirectoryPath) { in WinNtSimpleFileSystemFlush()
2920 if (PrivateFile->IsOpenedByRead) { in WinNtSimpleFileSystemFlush()
2925 PrivateFile->WinNtThunk->GetFileInformationByHandle (PrivateFile->LHandle, &FileInfo); in WinNtSimpleFileSystemFlush()
2932 …Status = PrivateFile->WinNtThunk->FlushFileBuffers (PrivateFile->LHandle) ? EFI_SUCCESS : EFI_DEVI… in WinNtSimpleFileSystemFlush()