andy148
asked on
Is it possible to use drivers in C#?
I know it is impossible to write drivers in C#, but is it possible to use them? I found this article: http://www.codeproject.com/KB/system/soviet_protector.aspx that shows how to hook NtCreateSection() to suspend new processes and wait for the user allow the process to start. It uses a driver written in C, but the GUI is in C++. Before I attempt the long process of converting the GUI to C#, could someone tell me if it is actually possible to do in C#?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Also, this code is by no means C#. It's C.
ASKER
I guess I'll have to use C++. Thanks for your help.
Um, that accepted answer is exactly what I wrote in my first comment, isn't it?
... with the little difference that I posted some articles that show how to call 'DeviceIoControl()' from C#, which in fact means 'sending control requests to drivers'
It would be fair to share the points between us, but the answers barely have anything in common (we even answered different sub-questions). You explained the C# driver interface while I pointed to the place in code where a call to the driver was.
ASKER
Oh I am so sorry I wasn't paying attention to who posted the replies! Is there any way I can split points?
ASKER
Sorry for the confusion guys :(
ASKER
Open in new window