다음을 통해 공유


WdfObjectReleaseLock callback function

[Applies to KMDF and UMDF]

The WdfObjectReleaseLock method releases an object's synchronization lock.

Syntax

VOID WdfObjectReleaseLock(
  _In_ WDFOBJECT Object
);

Parameters

  • Object [in]
    A handle to a framework device object or a framework queue object.

Return value

None.

A bug check occurs if the driver supplies an invalid object handle.

Remarks

The WdfObjectReleaseLock method releases the synchronization lock that a driver acquired by previously calling WdfObjectAcquireLock. WdfObjectReleaseLock also restores the driver's IRQL to the value that it had before the driver called WdfObjectAcquireLock.

For more information about synchronization locks, see Synchronization Techniques for Framework-Based Drivers.

Examples

The following code example releases an object's synchronization lock. The driver previously obtained the object handle by calling WdfDeviceCreate or WdfIoQueueCreate.

WdfObjectReleaseLock(Object);

Requirements

Target platform

Universal

Minimum KMDF version

1.0

Minimum UMDF version

2.0

Header

Wdfsync.h (include Wdf.h)

IRQL

<=DISPATCH_LEVEL

DDI compliance rules

DriverCreate, KmdfIrql, KmdfIrql2

See also

WdfObjectAcquireLock

 

 

Send comments about this topic to Microsoft