Search code examples
c#device-driver

How do I restrict my driver from working for thirdparty applications?


How do I restrict my webcam driver from being used by other applications? I don't want other applications to use it. It should only work with my application.

Anyway I can achieve this in C#? The driver is developed by a different company and we're just getting the software done.

I understand that its not fair to ask the entire code..But atleast point me please.

Thanks so much.


Solution

  • Without rewriting the driver, adding a bunch of checks that could probably be got around by someone who decompiles the code and sees what they are and duplicates them, or by adding DRM at a driver level, which will annoy users and be a maintenance nightmare? You can't. Device drivers expose a device to the system, not to an individual program.