microsoft / ProjFS-Managed-API

A managed-code API for the Windows Projected File System
Other
145 stars 34 forks source link

Question: is there a way to create virtual files? (like a procfs) #46

Closed psantosl closed 4 years ago

psantosl commented 4 years ago

Hi,

Can virtual files be created with profjs?

I mean, suppose you want to create something like a directory to show info of running processes. Possible?

If not: expected?

I understand the basic functionality of procfs and I love it, but I'd like to have both "copied files" and virtual files.

Thanks!

cgallred commented 4 years ago

Yes, you could do something like procfs with ProjFS. Your provider application would get the process info and surface it as directories and files. When process info changes the provider would use the PrjDeleteFile/PrjUpdateFileIfNeeded APIs to update anything that had been cached to the disk due to user access. See Handling View Changes for more information.