You might be referring to a RAM disk, a portion of RAM which is treated by Windows as it if were a disk drive?
You tagged your question as C++ but it doesn't look like you're after code? Have a look here
] for various tools that can make such a RAM disk.
Note that a RAM disk is obviously erased when you shut down the computer.