DeRegisterOpRegionHandler function

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

Syntax

NTSTATUS DeRegisterOpRegionHandler(
  PDEVICE_OBJECT DeviceObject,
  PVOID          OperationRegionObject
);

Parameters

DeviceObject

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

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

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

See Also

ACPI_OP_REGION_HANDLER

RegisterOpRegionHandler