// oprghdlr.h
NTSTATUS DeRegisterOpRegionHandler(
[in] PDEVICE_OBJECT DeviceObject,
[in] PVOID OperationRegionObject
);
View the official Windows Driver Kit DDI referenceNo description available.
The DeRegisterOpRegionHandler routine deregisters an operation region handler with the ACPI driver.
DeviceObject [in]Pointer to the physical device object (PDO) that represents the ACPI device that defines the operation region.
OperationRegionObject [in]Specifies the operation region object returned by RegisterOpRegionHandler for the operation region handler.
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. |
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.