EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Can a number of processes use one driver ?

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
#27458
Posted: 11/27/2013 23:02:06
by Masashi Harasawa (Priority Standard support level)
Joined: 11/07/2011
Posts: 16

Can a number of processes use *one* driver ?
Or else, each process should use the distinct driver which has a particular ProductName ?

Thanks.
Masashi Harasawa
#27459
Posted: 11/28/2013 00:23:13
by Eugene Mayevski (EldoS Corp.)

Example: If you have several applications compiled with CBFS 4, one instance of cbfs4.sys resides in the system and is loaded to memory. ProductName is needed to (a) implement something like reference counting for installation (i.e. to ensure that each application uninstalls only what it has installed and doesn't break other application), (b) to distinguish between calls to the driver .

One can create a custom build of the driver from the source code. Such custom build, if implemented properly, looks like a completely different driver not related to CBFS - it has other GUIDs, other file and object names etc . Applications that use CBFS don't see custom driver and vice versa.


Sincerely yours
Eugene Mayevski
#27487
Posted: 11/28/2013 19:36:36
by Masashi Harasawa (Priority Standard support level)
Joined: 11/07/2011
Posts: 16

Thank you very much for your quick response.

About (b), for example:

1. The process-0 calls "CallbackFileSystem.Install" with ProductName "Foo".
2. "CallbackFileSystem.Install" successes, then the process-0 ends.
3. The process-1 calls "CallbackFileSystem.Initialize" with ProductName "Foo", after that, the virtual drive is mounted(drive letter "V").
4. While the process-1 is running, the process-2 calls "CallbackFileSystem.Initialize" with ProductName "Foo", after that, the virtual drive is mounted(drive letter "W").

In the above example(same ProductName), do the process-1 and the process-2 normally work ?

Thanks.
Masashi Harasawa
#27493
Posted: 11/29/2013 00:41:27
by Volodymyr Zinin (EldoS Corp.)

Yes, absolutely.

But in the case these two processes represent two different products it's recommended to use different ProductNames during the installation. Because in the case one of the products is uninstalled then the second one stops to work.

Reply

Statistics

Topic viewed 641 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!