1

Topic: CreateFile

Day kind. A question in the following: by call CreateFile in the first argument it is possible to use ":" the file forms, thus in file name everything that after ":" it is cut off. But if to try to write down something on received  - it is impossible, but also the error is not present. In what the reason? The error can eat? DWORD dwCounter, dwTemp; HANDLE hFile = CreateFile (szCounterFileName, 0x40000000, 0, NULL, 2, 0x80, NULL); if (INVALID_HANDLE_VALUE == hFile) {return 1;} c = WriteFile (hFile, &szMsgTmpl, sizeof (szMsgTmpl), &dwTemp, NULL); if (! c) {cout <<"Number Error =" <<GetLastError () <<"\n";} CloseHandle (hFile);

2

Re: CreateFile

proor: P> the Question in the following: by call P> CreateFile in the first argument it is possible to use ":" P> the file forms, thus in file name everything that after ":" it is cut off. P> but if to try to write down something on received  - it is impossible, but also the error is not present. P> In what the reason? The error can eat? Flows NTFS. Roughly speaking, at a file, except the main flow ("contents"), there can be other, named flows.

3

Re: CreateFile

Hello, Drobodan Frilich, you wrote: > Flows NTFS. Roughly speaking, at a file, except the main flow ("contents"), there can be other, named flows. https://msdn.microsoft.com/ru-ru/librar … p/aa364404 (v=vs.85).aspx https://msdn.microsoft.com/en-us/librar … p/aa365247 (v=vs.85).aspx