Hi. I have two applications one in c ++ and one in vb6 that need to access the driver.
First I run the application in c ++ e and open the driver. Once the handle is obtained, I pass it to the application in vb6 so that it can be used without opening it again. Is it possible from two applications to use the driver?
It is possible for two applications to use the driver if they filter over different network adapters. Otherwise they may conflict.
However, please note that file handle is normally valid inside the process and can’t be passed outside as it is, unless it is inherited by child process or duplicated (DuplicateHandle). Besides this, please note that handle returned by OpenFilterDriver is a pointer to in-process memory object and can’t be passed by inheritance or duplication.