Re: BugCheckSecondaryDumpDataCallback Question



David,

Can you tell us why you want to know whether minidump or kernel dump is being created? I will caution against drivers relying only on this information as in Win7, there is a potential that you will only get a minidump even if the system was configured for a kernel dump due to insufficient dump file space. The system does adjust the allowable dump data a driver can add based on the configured dump type.

-Eliyas


"Scott Noone" <snoone@xxxxxxx> wrote in message news:Os9vBQvTJHA.5344@xxxxxxxxxxxxxxxxxxxxxxx
I think dump type is configured during boot and any changes in the registry after that will only take effect after reboot.

I didn't think that was the case, so I just sacrificed an XP system and was successful in switching the dump type (and crashing) without a reboot. This is XP + latest and greatest SP so maybe it's O/S specific.

-scott

--
Scott Noone
Software Engineer
OSR Open Systems Resources, Inc.
http://www.osronline.com


"Alexander Grigoriev" <alegr@xxxxxxxxxxxxx> wrote in message news:%23SZNzErTJHA.5344@xxxxxxxxxxxxxxxxxxxxxxx
I think dump type is configured during boot and any changes in the registry after that will only take effect after reboot.

"David Craig" <drivers@xxxxxxxxxxxxx> wrote in message news:enkA1plTJHA.1908@xxxxxxxxxxxxxxxxxxxxxxx
I wish I could get it out of the registry. I guess I could read the value from the registry during initialization, but it could change. That callback is run at HIGH_LEVEL IRQL, which eliminates any registry usage. It almost eliminates any use of Kernel APIs. I have nonpaged pool structures that would be useful to save if it is a minidump, but redundant to save if a kernel or full dump. I was hoping it was easier to know, but since this is a MSDN nospam email address someone from Microsoft may respond this week.

"Scott Noone" <snoone@xxxxxxx> wrote in message news:ev63SOkTJHA.5812@xxxxxxxxxxxxxxxxxxxxxxx
I've never written one of those callbacks, but I can say that I've never seen an API that will return the configured dump type (which of course doesn't necessarily mean that there isn't one).

If necessary, you can always get this out of the registry by reading the CrashDumpEnabled value and caching the result. You'd also need to deal with this value changing if being 100% correct is critical.

HTH,

-scott


--
Scott Noone
Software Engineer
OSR Open Systems Resources, Inc.
http://www.osronline.com


"David Craig" <drivers@xxxxxxxxxxxxx> wrote in message news:uZkr5FUTJHA.1164@xxxxxxxxxxxxxxxxxxxxxxx
In a BugCheckSecondaryDumpDataCallback function can you determine if a minidump or a kernel dump is being created?










.



Relevant Pages