Bewerken

Delen via


NdisDprReleaseReadWriteLock function (ndis.h)

The NdisDprReleaseReadWriteLock function releases a lock that was acquired in a preceding call to NdisDprAcquireReadWriteLock.

Note  The read-write lock interface is deprecated for NDIS 6.20 and later drivers, which should use NdisReleaseRWLock instead of NdisDprReleaseReadWriteLock.
 

Syntax

void NdisDprReleaseReadWriteLock(
  [in, out] PNDIS_RW_LOCK Lock,
            PLOCK_STATE   LockState
);

Parameters

[in, out] Lock

A pointer to an NDIS_RW_LOCK variable for the acquired lock to be released.

LockState

A pointer to an opaque LOCK_STATE variable that tracks the state of the lock. This variable exists in the interval between the time the caller acquires and releases the lock.

Return value

None

Remarks

A driver must initialize a lock before calling any other NdisXxxReadWriteLock function that is used to acquire or release read or write access to the resources that are protected by that lock. The NdisInitializeReadWriteLock function is used to initialize a lock.

A driver must call the NdisDprAcquireReadWriteLock function to acquire a lock before the driver can call NdisDprReleaseReadWriteLock. Each call to NdisDprAcquireReadWriteLock requires a reciprocal call to NdisDprReleaseReadWriteLock.

Requirements

Requirement Value
Minimum supported client Supported for NDIS 6.0 and 6.1.
Target Platform Universal
Header ndis.h (include Ndis.h)
Library Ndis.lib
IRQL DISPATCH_LEVEL

See also

NdisDprAcquireReadWriteLock

NdisInitializeReadWriteLock

NdisReleaseRWLock