I have a closed source third party API that writes the output data to a file, however I want to read that data and want to process it further.
The API is a library in DLL and takes a regular file path like "C:\someFolder\someFile"
The current setup requires me to save the data from api to a temp file on the disk and then read this temp file to get the data into memory for processing.
Is it possible in windows to have a virtual file or filesystem in main memory with regular path so that the API can write to the main memory instead of disk which would make things faster as there would be no disk access.
Is this possible natively in windows without using any additional software or API installations?
In OS/2 and Microsoft Windows, the virtual file system mechanism is called the Installable File System. The Filesystem in Userspace (FUSE) mechanism allows userland code to plug into the virtual file system mechanism in Linux, NetBSD, FreeBSD, OpenSolaris, and macOS.
A file system is a method of organizing files on physical media, such as hard disks, CD's, and flash drives. In the Microsoft Windows family of operating systems, users are presented with several different choices of file systems when formatting such media.
File Allocation Table (FAT and FAT32) Microsoft New Technology File System (NTFS) Microsoft Resilient File System (ReFS).
A file system stores and organizes data and can be thought of as a type of index for all the data contained in a storage device. These devices can include hard drives, optical drives and flash drives.
You can create a named pipe and give the path in a form of \\.\pipe\PipeName to your DLL. Then in your own code connect to the pipe and read. See an example here: Create Named Pipe C++ Windows.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With