Re: data exchange betwen driver and gui aplication

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



rc =ObReferenceObjectByHandle
(
UserProcessHandleEvent,
GENERIC_ALL,
NULL,
KernelMode,
(PVOID *)&ProcessEvent,
0
);

Use Irp->RequestorMode instead of KernelMode and *ExEventObjectType as Type,
otherwise, you will open the security hole.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@xxxxxxxxxxxxxxxx
http://www.storagecraft.com

.



Relevant Pages

  • Re: Pen Drive Initialization
    ... It must have the valid filesystem metadata with 100% of data space marked ... >> Maxim Shatskih, Windows DDK MVP ... >>> When I do that, windows keeps repeating the reading commands, and there ...
    (microsoft.public.development.device.drivers)
  • Re: Replacing MdlAddress of an IRP. Can we do that?
    ... If the partial MDL was built - then a master MDL which was used as a base ... Maxim Shatskih, Windows DDK MVP ... Apparently I have to use a IoBuildPartialMdl (PreviousMdl, SwapMdl, ...
    (microsoft.public.development.device.drivers)
  • Re: Accessing the adapter context in an NDIS driver
    ... >> Maxim Shatskih, Windows DDK MVP ... >> StorageCraft Corporation ... >>> I don't know how to get to my adapter context from my dispatch routine, ...
    (microsoft.public.development.device.drivers)
  • Re: USBSTOR.SYS
    ... > interpret certain sectors. ... >>> Maxim Shatskih, Windows DDK MVP ... >>> StorageCraft Corporation ...
    (microsoft.public.development.device.drivers)
  • Re: sharing serial ports among applications
    ... > has to be acquired before the applications can access the com port. ... >> Maxim Shatskih, Windows DDK MVP ... >> StorageCraft Corporation ...
    (microsoft.public.development.device.drivers)