Partager via


NdisReleaseReadWriteLock (Windows Embedded CE 6.0)

1/6/2010

This function releases a lock that was acquired in a preceding call to NdisAcquireReadWriteLock.

Syntax

VOID NdisReleaseReadWriteLock(
  PNDIS_RW_LOCK Lock,
  PLOCK_STATE LockState
);

Parameters

  • Lock
    [in] Points to the acquired lock to be released.
  • LockState
    [in] Points to an opaque 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 used to gain or release read or write access to the resources protected by that lock. The NdisInitializeReadWriteLock function is used to initialize a lock.

A driver must call NdisAcquireReadWriteLock to acquire a lock before the driver can call NdisReleaseReadWriteLock. Each call to NdisAcquireReadWriteLock requires a reciprocal call to NdisReleaseReadWriteLock.

Requirements

Header ndis.h
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

NDIS Library Functions
NdisAcquireReadWriteLock
NdisInitializeReadWriteLock