memory-access-violation

ObReferenceObjectByHandle Bugcheck, Memory Access Violation

Hello all, I am working on a project to dynamically disable the keyboard. I have written a driver which attempts to obtain the keyboards physical device object then call IoInvalidateDeviceState with it but I am having a problem getting its physical device object. Whenever I try to call ObReferenceObjectByHandle with the handle to the dev...

Access Violation Exception

Hello, I am having some strange problem. I have written a small module in VC++ using OpenCV. It works fine. The code aggregates feed from the CCTV camera connected to the USB port. however, I had to write the rest of my application in C#, so I made a DLL of the VC++ code and called the VC++ method from C#. Now, I have ended up getti...