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

???? ?????? ???? ??????
???? ID: 105763 - ?? ???????? ?? ?????? ??? ?? ?? ???? ???? ???? ??.
??? ?? ??????? ???? | ??? ?? ??????? ????

?? ????? ??

??????

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 ??? ?????? ???

???

???? ID: 105763 - ????? ???????: 03 ?????? 2010 - ??????: 4.0
???? ???? ???? ??:
  • Microsoft Win32 Application Programming Interface
??????: 
kbapi kbfileio kbhowto kbkernbase kbmt KB105763 KbMthi
???? ?????? ????????
??????????: ?? ???? ?? ???? ??????? ?? ????? ?? Microsoft ????-?????? ?????????? ?????? ?????? ???? ??? ??. Microsoft ???? ??? ????-???????? ?? ????-???????? ????? ?????? ?? ???? ???????? ???? ?? ???? ????? ????? ??? ?? ??? ?????? ?? ???? ???? ???? ??? ????? ??. ???????, ????-???????? ???? ????? ???? ???? ???? ???. ?????, ????????, ?????-???? ?? ??????? ?? ???????? ?? ???? ???, ???? ?? ??? ?????? ???? ???? ??? ????? ??? ?? ???? ??. Microsoft ??????? ??? ???? ?? ?????? ?? ??????????, ????????? ?? ??? ?????? ?? ???? ????? ?? ???? ???????? ?? ??? ???? ????? ?? ??? ????????? ???? ??. Microsoft ????-?????? ?????????? ?? ????? ?????? ?? ?? ??? ??.
?????????? ?? ??????? ????????? ??????? ??:105763

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

 

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