???? ID: 105763 - ????? ???????: 03 ?????? 2010 - ??????: 4.0

???????? ???? ?? NTFS ????????? ?? ????? ???? ????

?????? ??????This article applies to a different operating system than the one you are using. Article content that may not be relevant to you is disabled.

?? ????? ??

??? ?? ??????? ???? | ??? ?? ??????? ????

??????

NTFS ????? ?????? ?? ??? ???????? ???? ?? NTFS ???? ?? ?????? ?? ?? ?? ???? ?? ?????? ???? ??; ???????, ????????? ???? ??? ????????? ????? ?? ??? ???????? ???

Windows NT ?????? ??? ????????? ??????? ???????? ???????????:
filename:stream
???????? ???? ?????? ?? NTFS ????? ?????? ?? ?? ?????? strictly ??? ?? ??????? ? ?? ?????? ??? ????? ?????? ??? ???????, Windows NT ?? ???? ????????? ??? NTFS ??????? ?? ??????

?? ???? OLE 2.0 structured ?????? (IStream ?? IStorage) ?? ?????? ?????? ????? ?????? ?? ?????? ?????? OLE 2.0 ?? ????? ??, ?????? ??? ????????? ?? ???? ??? ?????? ?????? ????????? ?? ???? ?? ????? ?????? ?? ??? (Windows, Macintosh, Windows NT, ?? Win32s), ???????? ?????? ??????? ? ???? Windows NT.

???? ???????

????? ????? ??? ????????? ???? ?? ?? NTFS ??????:

????? ???

   #include <windows.h>
   #include <stdio.h>

   void main( )
   {
      HANDLE hFile, hStream;
      DWORD dwRet;

      hFile = CreateFile( "testfile",
                       GENERIC_WRITE,
                    FILE_SHARE_WRITE,
                                NULL,
                         OPEN_ALWAYS,
                                   0,
                                NULL );
      if( hFile == INVALID_HANDLE_VALUE )
         printf( "Cannot open testfile\n" );
      else
          WriteFile( hFile, "This is testfile", 16, &dwRet, NULL );

      hStream = CreateFile( "testfile:stream",
                                GENERIC_WRITE,
                             FILE_SHARE_WRITE,
                                         NULL,
                                  OPEN_ALWAYS,
                                            0,
                                         NULL );
      if( hStream == INVALID_HANDLE_VALUE )
         printf( "Cannot open testfile:stream\n" );
      else
         WriteFile(hStream, "This is testfile:stream", 23, &dwRet, NULL);
   }
				
??????? ??????????? ???? ??? ????? ?? ???? ?? 16, ??????? ?? ???? "testfile", ?? ?? ??? ??? ??? ?? ?????
testfile ?????
????? ????:
   This is testfile
				
???????
testfile:stream ?????
????? ????:
   The filename syntax is incorrect
				
????? ???? testfile:stream ??? ??, ?? ??? ????? ????:
????< testfile:stream="">
-??-
mep testfile:stream
???? "mep" Microsoft ?????? ??????????? SDK ??? ?????? ???

???? ???? ???? ??:
  • Microsoft Win32 Application Programming Interface
??????: 
kbapi kbfileio kbhowto kbkernbase kbmt KB105763 KbMthi
???? ?????? ???????????? ?????? ????????
??????????: ?? ???? ?? ???? ??????? ?? ????? ?? Microsoft ????-?????? ?????????? ?????? ?????? ???? ??? ??. Microsoft ???? ??? ????-???????? ?? ????-???????? ????? ?????? ?? ???? ???????? ???? ?? ???? ????? ????? ??? ?? ??? ?????? ?? ???? ???? ???? ??? ????? ??. ???????, ????-???????? ???? ????? ???? ???? ???? ???. ?????, ????????, ?????-???? ?? ??????? ?? ???????? ?? ???? ???, ???? ?? ??? ?????? ???? ???? ??? ????? ??? ?? ???? ??. Microsoft ??????? ??? ???? ?? ?????? ?? ??????????, ????????? ?? ??? ?????? ?? ???? ????? ?? ???? ???????? ?? ??? ???? ????? ?? ??? ????????? ???? ??. Microsoft ????-?????? ?????????? ?? ????? ?????? ?? ?? ??? ??.
?????????? ?? ??????? ????????? ??????? ??:105763  (http://support.microsoft.com/kb/105763/en-us/ )