void Func (PCHAR FullPath);
A third function, the known function is output to a text file to the specified path,
But I don't want to let the function output to a disk, so that I will read a disk, simply let it output to the specified memory I
I tried to make it on the output to a named pipe
Func (" \ \ \ \. \ \ pipe \ \ MyTest ");
But ReadFile fails, GetLastError returns 0 x0000006d
I suspect that this function is to use fopen (" w + ") or the CreateFile + CREATE_ALWAYS open file,
What other ways can make this function directly output to the memory? Virtual hard disk (except)
CodePudding user response:
The sprintf functionCodePudding user response:
The problem is that writing disk format output to where you want to continue to use have to go again to read disk procedures, even pipe, you across the pipe also read disk files posture is it?On the other hand, do not leave memory why the output?