DeRegisterOpRegionHandler function (oprghdlr.h)

The DeRegisterOpRegionHandler routine deregisters an operation region handler with the ACPI driver.

Syntax

NTSTATUS DeRegisterOpRegionHandler(
  [in] PDEVICE_OBJECT DeviceObject,
  [in] PVOID          OperationRegionObject
);

Parameters

[in] DeviceObject

Pointer to the physical device object (PDO) that represents the ACPI device that defines the operation region.

[in] OperationRegionObject

Specifies the operation region object returned by RegisterOpRegionHandler for the operation region handler.

Return value

Returns one of the following status values.

Return code Description
STATUS_SUCCESS The operating region handler was successfully registered.
STATUS_INSUFFICIENT_RESOURCES The routine could not allocate the necessary system resources.
STATUS_Xxx An internal error occurred.

Remarks

This routine is used in combination with RegisterOpRegionHandler. To deregister an operation region handler, the caller must specify the operation region object returned by RegisterOpRegionHandler when it registered the operation region handler.

For more information about operation regions, see Supporting an Operation Region.

Requirements

Requirement Value
Target Platform Universal
Header oprghdlr.h (include Oprghdlr.h)
Library Oprghdlr.lib
IRQL PASSIVE_LEVEL

See also

ACPI_OP_REGION_HANDLER

RegisterOpRegionHandler