UID | title | description | old-location | tech.root | ms.date | keywords | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | f1_keywords | topic_type | api_type | api_location | api_name | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:wdm.PoFxRegisterCrashdumpDevice |
PoFxRegisterCrashdumpDevice function (wdm.h) |
The PoFxRegisterCrashdumpDevice routine registers a crash-dump device. |
kernel\pofxregistercrashdumpdevice.htm |
kernel |
04/30/2018 |
|
PoFxRegisterCrashdumpDevice, PoFxRegisterCrashdumpDevice routine [Kernel-Mode Driver Architecture], kernel.pofxregistercrashdumpdevice, wdm/PoFxRegisterCrashdumpDevice |
wdm.h |
Pepfx.h |
Windows |
Available starting with Windows 8.1. |
Ntoskrnl.lib |
PASSIVE_LEVEL |
Windows |
|
|
|
|
|
The PoFxRegisterCrashdumpDevice routine registers a crash-dump device.
A handle that represents the registration of the crash-dump device with the Windows power management framework (PoFx). The device driver previously received this handle from the PoFxRegisterDevice routine.
PoFxRegisterCrashdumpDevice returns STATUS_SUCCESS if the routine successfully registers the crash-dump device. Possible error return values include the following status codes.
Return value | Description |
---|---|
|
Not a valid handle value. |
|
There is no PEP for this device. |
This routine is called by the driver for a crash-dump device to inform PoFx that the device is part of the crash-dump device chain. Several devices (storage controller, PCI controller, and so on) might need to be turned on so that the Windows kernel can write a crash-dump file to disk. When a fatal system error occurs, the kernel tries to turn on the crash-dump devices and save the crash-dump file.
The driver must call PoFxRegisterDevice to register the device with PoFx before calling PoFxRegisterCrashdumpDevice.
The driver for a crash-dump device can call the PoFxPowerOnCrashdumpDevice routine to request that the PEP turn the device on.
For more information about crash dumps, see Kernel-Mode Dump Files.
PoFxRegisterCrashdumpDevice must be called at IRQL = PASSIVE_LEVEL.