???? ?????/????? ????? ??? ?????? ??? ?????? ??? ???? ??????? Windows NT ? Windows 2000 ? Windows XP

?????? ????????? ?????? ?????????
???? ???????: 156932 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

?? ??? ??????

??????

???? ?????/????? ????? ?? Microsoft Windows NT ?? ???? ??????? Windows 2000 ?? ???? ??????? Windows XP ?????? ?? ??? ??????. ?????? ????????? ???????/??????? ?????????: ??? ??????? ???? ???????/????? ?????? ??? ?????? ????? ???????/???????. ?????/????? ??? ??????? ??? ?????? ?????? ???? ???? ???????/????? ?????? ??????? ??? ???????? ???? ???? ???????/??????? ?? ????? ?? ????? ??? ??? ????. ???? ??????? ?????? ?????? ??? ?????? ????? ???????/???????. ????? ?? ???? ???? ????? ?????? ???? ????? ???????/??????? ??????? ???????? ????? ???? ???????.

???? ???????/??????? ??? ???????? ?? ?????? ??? ??? ?????? ???? ????? ?? ????? ????? ???? ????? ??? ???? ????? ????? ???????/???????. ????? ????? ?? ?????? ????? ?????/????? ??????? "???????/??????? ??? ????????" ???? ?????? ???????/??????? ???????/??????? ?????????. ?????? ??? ??????? ????????? ???????? ? ?????? ??????? ???????/??????? ??? Windows NT. ????? ??? ??????? ?????? ???? ??? ??????? ????? "?????/????? ?????" ??? CreateFile? ReadFile? WriteFile.

??????? ?? ?????? ???????/??????? ??? ???????? ???? ????? ?????? ?? ???????/???????. ????? ?????? ???????? ?? ??? ??????? ?? ??????? ??????? ????? ???????/??????? ??????? ?????? ??? ??????. ??? ???? ????????? ?? ??? ??????? ????? ????? ???????/??????? ?? ???? ??? ?????? ????? ???????/???????.

????? ?????? ?? ??????? ???????/??????? ??? ???????? ???? ????????. ?????? ??? ?????? ReadFile ? WriteFile ??????; ????? ????? ???? ????????? ????????????. ??? ????? ?? ?? ????? ??? ??????? ??? ??? ???????/??????? ??? ??? ???????? ??????? ?? ??????? ???? ??????? ??? ????? ???? ?? ???????/???????? ??? ?????/????? ??????? ?? ?????/????? ??????.

??????: Windows 95 ???? ?? ???? ???????/??????? ??? ???????? ??? ????? ????? (??? ????? ?? ?? ???? ??? ????? ???? ?? ????? ???????/???????)? ?????? ?? ??? ??????? ?? ??? ???????.

??????? ????

?? ?????? ?????/????? ??? ??????

??? ????? ??????? FILE_FLAG_OVERLAPPED ?? CreateFile ??? ??? ?????. ???? ??? ??????? ?????? ???????/??????? ??? ????? ??????? ??????? ???? ??? ??????. ???? ????:
   HANDLE hFile;

   hFile = CreateFile(szFileName,
                      GENERIC_READ,
                      0,
                      NULL,
                      OPEN_EXISTING,
                      FILE_FLAG_NORMAL | FILE_FLAG_OVERLAPPED,
                      NULL);

   if (hFile == INVALID_HANDLE_VALUE)
      ErrorOpeningFile();
				
?? ????? ??? ????? ????????? ???????? ???????/??????? ??? ???????? ??? ?????? ????? ???? ?? ????? ????? ??????? ??? ??? ????? ???. ????? ??? ?????? ??? ??? ?????? ???????? ???? ???? ?? ????? ???????/????? ???? ?? ??? ????? ??? ?????? ?? ???? ??? ??????. ???? ????? ???????? ???????? ??? ????????.

???? ?????? ?? ??????? ???? ???? ?????? ????? ?????? ??? ?????? ?????? ??????? ??? ?????? ?????? ?? ????? ??????? ?? ?????? ????? ?? ???????. ??? ???? ??????? ????? ????????? ???????? ??????? ???? ???? ????? ??????? ???? ?????? ?? ????? ???????. ???? ?? ??? ???? ?? ?????? ???????/??????? ??????? ??????:
   if (!ReadFile(hFile,
                 pDataBuf,
                 dwSizeOfBuffer,
                 &NumberOfBytesRead,
                 &osReadOperation )
   {
      if (GetLastError() != ERROR_IO_PENDING)
      {
         // Some other error occurred while reading the file.
         ErrorReadingFile();
         ExitProcess(0);
      }
      else
         // Operation has been queued and
         // will complete in the future.
         fOverlapped = TRUE;
   }
   else
      // Operation has completed immediately.
      fOverlapped = FALSE;

   if (fOverlapped)
   {
      // Wait for the operation to complete before continuing.
      // You could do some background work if you wanted to.
      if (GetOverlappedResult( hFile,
                               &osReadOperation,
                               &NumberOfBytesTransferred,
                               TRUE))
         ReadHasCompleted(NumberOfBytesTransferred);
      else
         // Operation has completed, but it failed.
         ErrorReadingFile();
   }
   else
      ReadHasCompleted(NumberOfBytesRead);
				
???? ?? ??? ???????????????? ???? ?? ??????? ??? ReadFile ????? ?? ??? ??????????????????????? ???? ?? ??????? ??? ??????????????????. ?? ??? ??????? ?? ????? ??? ??????? ??? ??????? ?????????????????? ?????? ??? ????? ?????? ??????? ?? ??????? ??? ?? ????? ?????? ?????. ??? ???????????????? ???? ?? ??????? ??? ReadFile ?? ???? ??.

???? ??? ?????? ?????? ?????? ????? ??????? ?? ??? ???????????????? ???? ?? ??????? ??? ReadFile ?????? ???? ????? ?????? ????????. ?? ??? ??????? ????? ???? ?????? ???? ?? ??????? ??? ReadFile; ?? ?????? ???? ?? ?????????????????? ?? WaitForSingleObject.

??????? ??? ???????? ????? ??? ??????? ??? ??? ??? ??????? ???? ???? ?????? ??? ???? ?????? ???????. ?? ????? ?????? ??? ??? ???? ????? ?????? ???????/??????? ???????? ??? ??????? ????? ????? ???????. ??? ??? ????? ????? ??????? ???? ???? ??????? ??? ????? ????? ??? ?????? ?? ?????? ???????/??????? ??? ????? ??? ?? ????????. ???????? ??? ???? ??? ?? ????? ??????? ???? ???? ?????? ????? ??????? ?? ??? ????? ???????? ??? ?????? ????? ?????? ???? ???? ???? ?????? ??? ?? ???? ?????? ?????? ???? ???? ??? ????? ?????.

????? ??? ??? ??????? ??? ?????? ?????? ???????? ????????? ?? ???????. ?? ???? ??????? ?????? ???? ??????? ?? ??????? ??? ?????? ?? ?????? ????? ???????/??????? ???????; ????? ?? ????? ?????? ?????? ?? ????? ????? ????????? ???????.

??? ???????? "???????/??????? ?? ???? ????" ??????

??? ????? ????????? ???? ???? ?????? ?? ??? ??????? ??? ???? ???? ?????? ???????/??????? ????? ?? ?? ???? ???? ????? ??? ?????? ????????? ??? ?? ???????? ReadFile ????? FALSE ?? GetLastError() ????? ERROR_IO_PENDING? ???? ???? ???? ?? ??? ??? ??? ???????. ????? ???? ????

???? ??? ????? ????? ????? ?????? ???????/??????? ??? ?????? ??? ??? ??? ???? ????? ?????? ??? ???????:

?????

????? ????? ?????? ??? ??????? ??? ??? NTFS. ????? ?????? ????? ???? ?? ??? ??? ??????? ???????? ???? ??? ??????; ????? ?? ??? ???? ??? ????? ???????? ????????? ???. ?? ??? ????? ??? ??? ??????? ???? ???????? ????? ?????? ?????? ???? ?? PKZIP.

????? NTFS

????? ?????? ????? ??????? ????? ?????? ????? ?????? ?????? ?????/????? ??? ?????? ??? ??????. ??? ?? ????? ???????? ???? ????? ?????/????? ??? ??????.

????? ???

??? ??? ?? ??? ????? ?????? ???????/??????? ??? ?????? ?? ???????? ?????. ??? Windows NT ?? ?? ????? ????? ????? ???? ???? ???? ???? ??????.

??????: ????????? ??? ????? ??????? ?????? ????? ?????? ??? ?????? ?? ???? ????? "??? ???????? ???????" ????? ???????? ?????? ???????????????? ??? ?? ???? WriteFile.

???????? ??????????????? (???? ????? ?? ???? ??????? Windows XP ?????????? ??????)? ??????? ????? ????? ??????? ??? ???? ???? ???? ?????? ??? ???.

??? ???? ??????? NTFS ?? ??? ??? ???????? ??? ??? ??? ???????? ??????? (VDL) ???? ?? ??????? ?????? ???????????????? ??? ?????? ?? ?????? ??????? ??? ????? ?? ??? ????? ????? ???? ?? ?????? ???? ?????? ??????? ??????. ????? ????? ??????????????? ?? ???????? ?? ?????????????????????? ???? ????? (???? ???????? ??? ????? ??? ????????? ???). ???? Microsoft ??? ISVs ????? ???????? ??? ??????? ??? ??????.

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

????? ???? ????? ?????/????? (?????? ??????????? ??????) ???????? ???? ???? ??? ???? ????? ??????? ??? ??? ???? ????? ??? ???????/????? "??? ?????"? ????? ???? ReadFile ?? WriteFile TRUE. ?? ???? ???? ???? ??? ??????? ?? ?????? ?????????. ???? ????? ???? ???? ???? ????? ??? ???????/????? "??????" ??? ???????? ?? ??????? ?????? ?? ???????.

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

???? ????? ???? ????? ??????? ?????? ???? ??? ???? ??? ??? ??? ????? ?? ???????? ????? ??????? ??????. ??? ?????? ?? ????? ??????? ?????? ????? ??????? Windows NT ???????? ?????? ??? ??????. ????? ??????? ?? ???? ??????? Windows NT ?? ???? ???? ??? ?????? ??? ?? ???? ?????? ??????? ??? ????????? ?? ??? ????? ????? ??????? ??????. ????? ????? ????? ??????? ??????? ??? ???? ?????? ??? ??? ??? ?????? ???????? ?? ???????? ??? ??? ??? ????? ????? ????? ????? ?????? ?????? ??? ???????? ????? ??????? ?? ???????? ?????? ????? ???? ????? ????? ?? ??? ?? ???? ??? ??????? ?????? ?? ???? ??? ?????? ????? ?????? ?????? ?????? ?? ?????? ????? worker. ??? ????? ?????? ??? ???????? ??? ????? ???????? ReadFile ?????? ?? ??? ??????.

??? ???? ???? ??? ???? ???? ?? ???????? ???? ??? ???? ?????? ??????? ??????? ?????? (????? ????? ??? ???? ????? 16 ???? ????)? ??? ?? ???? ???? ????? ????? ????? ??? ???????? ??? ?????? ????? ????? ?? ??? ????. ??? ????? ???? ?? ?????? ???????/??????? ???????? ??? ????? ?? ????? ??????? ??????? ???? ????? ????? ????? ??????? ?????? ?????? ??????? ??????? ??????.

???? ????? ??????? ?????? ???? ???? ?? ????? ???????? ??? ?? ??? ??? ????? ?????? ??? ??? ?????? ?? ????????. ????? ????? ????? ??????? ?????? ???? ??? ?????? ??? ????? ????????. ????? FILE_FLAG_SEQUENTIAL_SCAN ?? CreateFile ???? ????? ??????? ????? ??????? ?????? ???? ????? ?? ??????. ??? ???? ??? ??? ????? ?????? ??? ??????? ?????? ???????? ??????? ????? FILE_FLAG_RANDOM_ACCESS ?? CreateFile ?????? ??????? ?????? ?????? ????? ?????? ????? ?? ?????? ????????.

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

????? FILE_FLAG_NO_BUFFERING ?? ????? ??? ?????? ???? ???? ??????? ?????? ??? ???????. ??? ?? ???? ????? ????? ?? ????? ???????/??????? ?????? ??? ???????. ??? ???? ???? ??????? ???? ??????? ?? ?????? ???? ??? ???????.

?????: ???? ??? ?????? ???????? ??? ??????? ??????? ?????? ?????? ???????? ???? ?????? ????? ???????. ???? ???? ?????? ?? ??????? ?????? ??????? CreateFile ?????? ??? ???? ?? ????????? ??? ??????? ??? ??????? ???? ????.

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

???? ??? ??? ????? ???????? ?? ????? ????????? ????????. ????? ????? ??? ??? ??? ?????? ?? ??????? ??? ???? ???? ??????? ??? ??????? ????????? ?? ????? ????? ???? ????? ???????? ??? ?????? ?????.

????? ?? ????? ??????? ????? ?????? ??? ???:
  • ???????? 1
    Asynchronous, unbuffered I/O:  asynchio /f*.dat /n
    
       Operations completed out of the order in which they were requested.
       500 requests queued in 0.224264 seconds.
       500 requests completed in 4.982481 seconds.
    						
    ???? ??? ???????? ?? ???????? ??????? ???? ????? ????? ???????/??????? 500 ????? ???? ???? ?? ????? ?????? ???? ??? ?? ????? ????? ????.
  • ???????? 2
    Synchronous, unbuffered I/O: asynchio /f*.dat /s /n
    
       Operations completed in the order issued.
       500 requests queued and completed in 4.495806 seconds.
    						
    ???? ??? ???????? ???? ??????? ??? ???????? ????? 4.495880 ??????? ReadFile ?????? ???????? ????? ???????? 1 ???? ????? 0.224264 ??? ?????? ????? ???. ?? ?????? 2? ?? ???? "??????" ??? ???????? ?????? ??? ????? ?????.
  • ?????? 3
    Asynchronous, buffered I/O: asynchio /f*.dat
    
       Operations completed in the order issued.
       500 requests issued and completed in 0.251670 seconds.
    						
    ???? ??? ???????? ??????? ????? ????? ??????? ??????. ?? ???????? ?? ????? ???????? ?? ????? 0.251670. ??????? ????? ?? ????? ????? ??????? ??? ??????. ??? ???????? ???? ???? ???? ????? ?? ????? ??????? ?????? ????? ???? ???????? ?? ????? ??????? ??????.
  • ?????? 4
    Synchronous, buffered I/O: asynchio /f*.dat /s
    
       Operations completed in the order issued.
       500 requests and completed in 0.217011 seconds.
    						
    ???? ??? ???????? ??? ??????? ??? ?? ????? ?? ???????? 3. ?????? ????? ??????? ?? ????? ??????? ?????? ???? ?????? ?? ?????? ??????? ??? ????????? ?? ????? ??????? ??????. ???? ??? ???????? ????? ?????? ?????? ??????? ?????? ????? ???? ???????? ?? ????? ??????? ??????.

???????

????? ?? ???? ?? ??????? ?? ?????? ??? ??? ????? ??? ??? ???? ???? ?????? ????? ???????? ????? ??.

?????? ??? ??????? ?????????? ??? ????? ?? ?????? ???? ? CreateFile ????? ??????? ?????? ???? ????????.

??????: ???? ??? ?????? ???????? ??? ???????? ?? ??? ????? ??? ?????? ????? ???? ????? ?? ?????? ??? ??????? ???????? ???????? ??? ??????? ??????? ?? ???????? ???????. ??? ????? ?? ?? ??? ?? ???? s ??????? [ASCII 146] ?????/????? ??? ??????? ???? ?????? ???????? ???????? ?????? ?? ????????? ???????.

???? ??? ?????? ?????? ??????? ????? ?? ??? ?????? ?? ???? ??? ?????? ??? ????? ??????? ??????? ?????? ?????? ??????? ??????? ?????? ?????????? ?? ???? ????? ?? ??? ???????. ????? ????? ????? ????? ??????? ?? ???? ReadFile ?? WriteFile ??? ?? ?????? ??? ????? ??? ????? ????? ?????? ??????? ???????/??????? ?????? ?????? ???? ??????. ??? ??? ???? ????? ???? ?????? ????? ???????/???????? ?? ??? ???????/??????? ????? ?? ????? ??? ??????. ??? ???? ??? ??? ????? ???? ????? ????? ????? ???????/??????? ????? ????? ?????? ?????? ???? ???? ??????? ???????/??????? ??? ?????? ?? ???????? ????? ???? ??? ??????. ?????? ?????? ????????? ???????? ???????? ????? ?? ??? ??????? ?????? ?????????????????????? ?????? ?????? ?? ??????? ??????? ?????.

?????? ?????? ????? ???????? ??? ????? ??? ?????? ???????? ??????? ????? ?????? ??????? ??????. ???? ?? ?? ?????? ?????? ?? ??? ??? ???? ??? ???? ????? ??????? ?????? ???? ????? ??????? ??????. ???? ?????? ???? "????? ??????" ?? "????? ???????" ????? ?????? ???? ????? ?????.

???? ?????? ?? ??????? ???????? ???? ?? ???? ????? ?? ?????? ??????? PerfMon ? DiskPerf ????? ???? ???. ?????? ?????? ?????? ???? ????? ???????? ??? ???? ????? ????? ????? diskperf-y. ??? ????? ?????? ??? ????? ????? ?????? ???? ????? ????? ????????.

?????

????? ?? ????????? ??? ??? ??????? ???????? ??????? ??????? ???? "????? Windows NT" ?? ???? Windows NT ???? ??????? ????? ?????? ?????.
????? ???? SQL ????? ???? '??????? ??????? ??????? ??????' ??? ?? ???? ??? ?????? Microsoft SQL Server ??? ???? ???? ????????. Fo????? ?? ????????? ??? ??????? ??????? ???????? ???? ????? ?????? SQL Server? ???? ??? ??? ??????? ?????? ?????? ?? "????? ??????? ? Microsoft":
967576??????? ???????/??????? ???? ????? ?????? ???? Microsoft SQL

???????

???? ???????: 156932 - ????? ??? ??????: 19/???/1434 - ??????: 6.0
????? ???
  • Microsoft Win32 ????? ????? ???????
  • Microsoft SQL Server 2008 Developer
  • Microsoft SQL Server 2008 Enterprise
  • Microsoft SQL Server 2008 Express
  • Microsoft SQL Server 2008 Standard
????? ??????: 
kbapi kbfileio kbinfo kbkernbase kbmt KB156932 KbMtar
????? ????
???: ??? ????? ??? ??????? ???????? ????? ?????????? ??????? ?????? ??? ??????? ?? ??? ??????? ?? ??????? ??? ??? ?? ???? ????????? ???? ??????? ???????(CTF) ?? ?? ???? ????? ????. ???? ?? ???? ?????????? ??? ???????? ???????? ???? ??? ?? ???????? ??????? ?? ??? ??????? ???????? ?? ??? ??????? ??????? ??? ?????? ?? ?????? ??? ???? ???????? ???????? ?? ????? ??????? ????? ????? ??????. ??? ?? ???????? ???????? ?? ????? ??? ????? ?? ???????? ?? ???? ????? ?? ?????. ?????? ??? ???? ?????????? ???? ?????? ?? ??? ????? ?? ??? ??? ?? ??????? ?? ??? ????? ?? ???? ????? ????? ?? ????? ??????? ???? ?? ???????? ?? ??? ???????.
???? ??? ????? ??????? ?????? ??????????156932

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

 

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