INFO: FILE_FLAG_WRITE_THROUGH ? FILE_FLAG_NO_BUFFERING

?????? ????????? ?????? ?????????
???? ???????: 99794 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

??????

????? FILE_FLAG_WRITE_THROUGH CreateFile() ????? ?? ?????? ??????? ???? ?? ??????? ??? ??? ?????? ??????? ?????? ??? ????? ???? ??? ??????? ??????. ??? ????? ???????? ?????? (??????? ?? ????? ??????? ?????? ?????) ? ??? ???? ???? ?? ???? ????? ?????? ??? ?????. ???? ??? ??????? ????? ????? ??? ???????? ?????? ??? ????? ?? ???????? ??????? ?????? (??? ??? ?? ???? ????) ? ????? ?? ?????? ??? ?????? ??? ????? ?????? ??? ????????. ?? ???? ?????? ??????? ??????? ??? ??? ????? ???????? ??? ?????. ????? ??? ??? ?????? ??????? ?????? ?????--???? ??????? ?????? ?????? ????? FILE_FLAG_WRITE_THROUGH ??? ?????? ???? ???? ?????? ?? ?????? ??? ??????? ??? ??? ????? ???????? ??? ?????.

FILE_FLAG_NO_BUFFERING ???? ??? ?????? ??????? ?????? ?? ???? ??????? ?????? ????? ??????? ????? ???????? ?????? ?????, ????? ???? ???? ??? ???? ??????? ???? ???? ?? ????? ??? ??? ?? ???? ???? ?????? ?? ??????? ??????? ??? ?????. ??? ??????? FILE_FLAG_NO_BUFFERING ? ???? ????? ??? ?? ??? ?????? ??????? ??? ???? ???? ?? ?????? ?????? ?????? ?????? ??? ???? ???? ????? ?? ???????.

??? ?????? ???? ??????? ?????? ?????? ????? ??? ??????? ?? ??????? API ?????? ???????/??????? ????? ?????? ??????? ??? ??? ??????? ????? ?? ?????? ?????? ?????? ? ???? ??? ?? ?????? ????? ??? ???? ???????? ??????? ???????? ??????? ???? ??? ??????? ???.

??????? ????

?? ????? CDFS 95 Windows (???? ??????? ????????) ????? FILE_FLAG_NO_BUFFERING CreateFile(). ????? ?? ???? ?????? FSD 95 Windows ??? VFAT ? ???? ? FILE_FLAG_NO_BUFFERING ??? ????? ????? ????? ????? ???? ??????? ??? ????? ?? ??? CDFS.

??? ????????? ???????? ??? ???? ????? ?????? ???????? ?? ?????? ???? ???? ???????? ??? CreateFile():
  char buf[2 * SECTOR_SIZE - 1], *p;

  p = (char *) ((DWORD) (buf + SECTOR_SIZE - 1) & ~(SECTOR_SIZE - 1));
  h = CreateFile(argv[1], GENERIC_READ | GENERIC_WRITE,
      FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, CREATE_ALWAYS,
      FILE_ATTRIBUTE_NORMAL | FILE_FLAG_NO_BUFFERING, NULL);
  WriteFile(h, p, SECTOR_SIZE, &dwWritten, NULL);

				
???? p ?????? ???? ??? ???? ??? ?????? ??????.

??? ??? ???? ???? ???? ???? ?? ??? ???? ??????? ???????? ?? ???? ??????? ??????? ?????? ???? ?????? ???? ?? ????:
   hFile = CreateFile("\\\\.\\c:", ....);
   FlushFileBuffers(hFile);
				
??? ??????? ???? ?? ?????? ??????? ??????? ??? ?????? ???? ??????? ???????? ?? ????? "C:" ??? ??????? ??????? ??? ?????. ???? ?? ?? ????? ?????? ?? ??? ??? ?????? ?? ????? ??? ????; ?????? ?? ??? ???????? ??????? ?????? ?????? ??? ??????? C. ??? ??????? ???????? ?? ??????? ??? ????? C. ??? ?????.

??? ??? ??? ???? ??? ???? ??????? ? ?????? ????? ?????? ??????? ????? ?? ??????? ?????? ?????? ?? ??? ??????. ???? ??? ???????. ?? ???? ????? "???? ???????" ? "?????? ???? ???? ?????? ?????? FILE_FLAG_NO_BUFFERING ??? ??????. ????? ???? ?? ???? ?? ????? ??????? ??? ???? ???????? ???? I/O. ?????? ????? ?? ?????? ?? FILE_FLAG_NO_BUFFERING ????? Win32-???????? ??? ???? ??????? ????? ??? ??????? ??? ???? ??? ?? FILE_FLAG_WRITE_THROUGH. ????? ?? ??? ????? ????? ???? ??? ?????? ??????? ????? ?????? ??? ?????? ??? ????? ??? ?????? ? ????? ???????/??????? ??? ???? ??????? ?????? ??????? ???? ??. ??? ???? ??? ??????? ?????? ????? ??? ??????.

??? ??????? ?????? ?????? ?? ????? ??? ???????? ??? ??? I/O. ?????? ?? ???? ?????? ??? ????? ??????? ?????? ?? ????? ?????? ???? ????? ?? ???? ????? ???? ???????. ???? ???? ???????/??????? "???????" ? ??? ???? ???? ??? ????? ??????? ?????? ??? ??????. ?????? ???????? ?????? I/O ??? ?????? ?????? ?? ??? ????? ??????? ??????.

???????

???? ???????: 99794 - ????? ??? ??????: 30/????/1427 - ??????: 4.2
????? ???
  • Microsoft Win32 ????? ????? ???????, ????? ?????? ??:
    • Microsoft Windows NT Advanced Server 3.1
    • Microsoft Windows NT 4.0
    • Microsoft Windows NT 3.51 Service Pack 5
    • Microsoft Windows NT 4.0
    • Microsoft Windows 95
    • Microsoft Windows 98 Standard Edition
    • the operating system: Microsoft Windows 2000
    • Microsoft Windows Millennium Edition
    • the operating system: Microsoft Windows XP
????? ??????: 
kbmt kbapi kbfileio kbinfo kbkernbase KB99794 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????99794

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com