Thank you Gary for your thoughtful response. I appreciate your time.
Negative, it is spit on me by WLK via SRB_FUNCTION_PNP (as Grigora correctly
pin pointed) when I ran pnpdtest for surprise removal.
BTW, my adapter is not in boot path FWIW.
The following is published structure from storport.h and srb.h (WDK
7600.16385.0):
//
// PNP minor function codes.
//
typedef enum {
StorStartDevice = 0x0,
StorRemoveDevice = 0x2,
StorStopDevice = 0x4,
StorQueryCapabilities = 0x9,
StorQueryResourceRequirements = 0xB,
StorFilterResourceRequirements = 0xD,
StorSurpriseRemoval = 0x17
} STOR_PNP_ACTION, *PSTOR_PNP_ACTION;
I would love to agree. But verifier doesn’t like it and for right reasons, I
get BSOD 0x000000C4 (param1=0x62, param4=1) as I didn’t free up my resources
as StorRemoveDevice is not called and I did not handle StorSurpriseRemoval.
I tried google without any luck and that is why this post.
Regards,
Chakri
“Gary G. Little” wrote in message
news:xxxxx@ntdev…
> Did you perchance misspell something? Do you mean StorPortSurpriseRemoval?
> But that’s a moot point since it really isn’t documented and given you
> discovered it by reverse engineering into StorPort, you ain’t supposed to
> be
> using it. But that’s moot too, since if you’re in the kernel, you can
> pretty
> well do what you god damned please. So, given you found the beast, with a
> little bit of study you can grok the calling parameters and figure out how
> to use it. Should you? Hell no, and personally I would not want crap like
> that on any system I support. Why? Because it’s undocumented. That means
> it
> may not be there in the next release of the OS, or work the same in the
> next
> service pack, and code using this undocumented nugget will then fail.
>
> So, why do you think you need to use it? Most likely there is an approved,
> documented method to solve your problem.
>
> Gary G. Little
> H (952) 223-1349
> C (952) 454-4629
> xxxxx@comcast.net
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Chakri
> Sent: Friday, July 09, 2010 9:42 AM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] Query regarding StorSurpriseRemoval
>
> Hello Gurus,
> There is little/no documentation on StorSurpriseRemoval.
>
> Two basic questions:
> 1. Since it is not documented, should I or should I not handle this PNP
> action in storport miniport driver?
> 2. If yes, is the expectation from the handler any different from
> StorRemoveDevice?
>
> Regards,
> Chakri
>
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
>