I want call an exe with 2 parameters from a kernel mode driver and get back boolean (0 or 1 )result in the driver .
How to do it ?
I want call an exe with 2 parameters from a kernel mode driver and get back boolean (0 or 1 )result in the driver .
How to do it ?
You can't really start a user mode process from minifilter or any other kernel driver. You may want to rethink about your design.
This thread may help you: how to create a process which will run in kernel level in windows?
To the best of my knowledge only user mode processes typically start processes. There is only one time I can think of when the Windows kernel actually starts a process entirely from kernel mode without the help of a user mode process and that is when it starts SMSS during early boot, but SMSS must be considered to be special in this context because it does not run in the context of any particular subsystem. Once CSRSS is running, all processes are started with the cooperation of a user mode process. Starting a process from kernel mode would bypass win32 and CSRSS in user mode, which would make it very unlikely that process could do anything useful. Even if it could be done, since it isn't something the kernel does by itself more than once, it seems unlikely that it would be easy to do or documented.
kernel mode - user mode communication are maintained in another way. Basically in minifilters you must use this framework for communication - FltCreateCommunicationPort/FltSendMessage/etc read this materials http://download.microsoft.com/download/e/b/a/eba1050f-a31d-436b-9281-92cdfeae4b45/filterdriverdeveloperguide.doc (chapter about communication)
and
http://download.microsoft.com/download/f/0/5/f05a42ce-575b-4c60-82d6-208d3754b2d6/messagesupport.ppt