// ndis.h
typedef struct _NDIS_RW_LOCK {
union {
struct {
KSPIN_LOCK SpinLock;
PVOID Context;
};
UCHAR Reserved[16];
};
union {
NDIS_RW_LOCK_REFCOUNT RefCount[MAXIMUM_PROCESSORS];
ULONG *RefCountEx[sizeof(NDIS_RW_LOCK_REFCOUNT)/ sizeof(ULONG) MAXIMUM_PROCESSORS];
struct {
KSPIN_LOCK RefCountLock;
ULONG SharedRefCount;
BOOLEAN WriterWaiting;
};
};
} NDIS_RW_LOCK, *PNDIS_RW_LOCK;
View the official Windows Driver Kit DDI referenceNo description available.
The NDIS_RW_LOCK structure defines the attributes of a read/write lock. This structure is opaque to NDIS drivers and is reserved for NDIS.
SpinLockReserved.
ContextReserved.
ReservedReserved.
RefCountReserved.
RefCountExReserved.
RefCountLockReserved.
SharedRefCountReserved.
WriterWaitingReserved.