- Home
- Producten
- Bedrijfsbehoeften
- Partners
- Referenties
- Kenniscentrum
- Support
- Over Perrit
- Handleidingen
- Nieuws
- Acties
bestandsnaam:stream
#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); }
resulteert de instructie testfile
This is testfile
type testfile:stream
The filename syntax is incorrect
more < testfile:stream
-of-
mep testfile:stream
Relevante artikelen |
Gekoppelde tagsFix, Service Pack, Win32 Software Development Kit, Windows 2000, Windows NT, Windows XP |