> Can you or somebody please help as IoConnectInterrupt is returning
> STATUS_FAILED_PARAMETER? What I am doing wrong
IoConnectInterrupt is meant to be called with parameters given to your
driver via the PnP Manager, HAL, and bus driver. It's not meant to be called
with parameters poofed up from thin air, so it's not surprising that it's
failing in this way.
In order to make this work properly you need to have a device with an
interrupt and a fully PnP compliant driver. For the driver, KMDF will save
you lots of pain and suffering.
-scott
--
Scott Noone
Consulting Associate
OSR Open Systems Resources, Inc.
http://www.osronline.com
"Mohit Gupta" <> wrote in message
news:1BFEA3A5-98FD-4B8A-87C0-...
> Respected Prakash
>
> Given code example doesn't comply to WDF standards, though can say this is
> a
> legacy driver which doesn't support PnP as of now. Since I am a beginner
> in
> Window Driver Development, I am trying out few things before even trying
> WDF.
>
> I am trying is to hook interrupt using this driver and unhook it when
> driver
> is stopped.
>
> I am starting driver using
>
> 1) net start MyDriver
> 2) net stop MyDriver
>
> Can you or somebody please help as IoConnectInterrupt is returning
> STATUS_FAILED_PARAMETER? What I am doing wrong
>
> "Prakash Manannavar" wrote:
>
>> Hi Mohit,
>>
>>
>> As I know, whatever you have coded is not a MicroSoft's standard
>> DriverEntry(),
>>
>>
>> Please check the code for DriverEntry and AddDevice functions and if
>> possible give somemore details.
>> --
>> ~~~~~
>> Prakash A Manannavar,
>> Bangalore/Bengaluru.
>>