PoFxRegisterCrashdumpDevice function (wdm.h)

The PoFxRegisterCrashdumpDevice routine registers a crash-dump device.

Syntax

NTSTATUS PoFxRegisterCrashdumpDevice(
  POHANDLE Handle
);

Parameters

Handle

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.

Return value

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
STATUS_INVALID_PARAMETER
Not a valid handle value.
STATUS_UNSUCCESSFUL
There is no PEP for this device.

Remarks

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.

Requirements

Requirement Value
Minimum supported client Available starting with Windows 8.1.
Target Platform Windows
Header wdm.h (include Pepfx.h)
Library Ntoskrnl.lib
IRQL PASSIVE_LEVEL

See also

PoFxPowerOnCrashdumpDevice

PoFxRegisterDevice