PshedRegisterPlugin function

The PshedRegisterPlugin function registers a PSHED plug-in with the PSHED.

Syntax


NTSTATUS PshedRegisterPlugin(
  _Inout_ PWHEA_PSHED_PLUGIN_REGISTRATION_PACKET Packet
);

Parameters

Packet [in, out]

A pointer to an initialized WHEA_PSHED_PLUGIN_REGISTRATION_PACKET structure that describes the PSHED plug-in's registration information.

Return value

PshedRegisterPlugin returns one of the following NTSTATUS codes:

Return codeDescription
STATUS_SUCCESS

The PSHED plug-in was successfully registered.

STATUS_INVALID_PARAMETER

The data in the supplied registration packet is invalid.

 

Remarks

A PSHED plug-in calls the PshedRegisterPlugin function to register itself with the PSHED. A PSHED plug-in typically calls this function from within either its DriverEntry function or its AddDevice function.

Requirements

Target platform

Universal

Version

Supported in Windows Server 2008, Windows Vista SP1, and later versions of Windows.

Header

Ntddk.h (include Ntddk.h)

Library

Pshed.lib

DLL

Pshed.dll

IRQL

<=DISPATCH_LEVEL

See also

AddDevice
DriverEntry
WHEA_PSHED_PLUGIN_REGISTRATION_PACKET

 

 

Send comments about this topic to Microsoft

Show: