And the specific problem with SCSI miniport serialization is that you are at DISPATCH_LEVEL and DIRQL MUCH of the time and cannot even find out since the call to get the IRQL is in the DDK and NOT in the SCSIPORT driver. Unless you call IoCreateNotificationEvent in DriverEntry, you most likely are NOT at PASSIVE_LEVEL, and therefore screwed.
The answer is still … “No, a SCSI miniport may NOT call IoCreateNotification and maintain compliance with the SCSIPORT model and WHQL.” If WHQL is NOT a consideration for the driver, then the driver writer can do what the driver wants to do if the driver writer can do what the driver writer wants to do.
(See Peter W? I do not always color outside the box. :))
–
Gary G. Little
Have Computer, Will Travel …
909-698-3191
909-551-2105
“Bi Chen” wrote in message news:xxxxx@ntdev…
One easy way to deal with this inconvenient is to copy those prototypes from ntddk.h or wdm.h you need but is not included in the miniport header file and paste them into your private header. I would add, for example
#ifndef IoCreateNotificationEvent
// all the things need to be defined for this prototype
#endif
It works like charm. Beware what you are doing, mostly if you are at right IRQL to call those functions
Bi
-----Original Message-----
From: Gary G. Little [mailto:xxxxx@inland.net]
Sent: Wednesday, November 13, 2002 3:31 PM
To: NT Developers Interest List
Subject: [ntdev] Re: Sharing a Event betwenn Scsi Miniport and User mode application
No. A SCSI miniport is not compiled with the DDK but with the SCSIPORT headers. As such it does not have the DDK Io, Ke, Mm, Rtl, etc available to it.
–
Gary G. Little
Have Computer, Will Travel …
909-698-3191
909-551-2105
“Saxena, Ajitabh Prakash” wrote in message news:xxxxx@ntdev…
Is this possible for SCSI Miniport to Call IoCreateNotificationEvent because as far as i am aware of DDK does not say this.
-----Original Message-----
From: subodh gupta [mailto:xxxxx@softhome.net]
Sent: Tuesday, November 12, 2002 10:38 PM
To: NT Developers Interest List
Subject: [ntdev] Re: Sharing a Event betwenn Scsi Miniport and User mode application
use IoCreateNotificationEvent in the kernel mode driver and OpenEvent in User Mode application.
--Subodh
----- Original Message -----
From: Saxena, Ajitabh Prakash
To: NT Developers Interest List
Sent: Monday, November 11, 2002 8:01 AM
Subject: [ntdev] Sharing a Event betwenn Scsi Miniport and User mode application
hi all,
I need a user application to be Notified of event that happens in Miniport Driver. Can i share a event between SCSI Miniport driver and User mode application… if yes please give me pointers to Info on this.
thanks in advance.
ajitabh
—
You are currently subscribed to ntdev as: xxxxx@softhome.net
To unsubscribe send a blank email to %%email.unsub%%
—
You are currently subscribed to ntdev as: xxxxx@lsil.com
To unsubscribe send a blank email to %%email.unsub%%
—
You are currently subscribed to ntdev as: xxxxx@appstream.com
To unsubscribe send a blank email to %%email.unsub%%