#ifndef _NTRTL_H
// winbase:TryAcquireSRWLockShared
_When_(return != 0, _Acquires_shared_lock_(*SRWLock))
NTSYSAPI
BOOLEAN
NTAPI
RtlTryAcquireSRWLockShared(
_Inout_ PRTL_SRWLOCK SRWLock
);
View code on GitHub// synchapi.h
BOOLEAN TryAcquireSRWLockShared(
[in, out] PSRWLOCK SRWLock
);
View the official Win32 API referenceNo description available.
Attempts to acquire a slim reader/writer (SRW) lock in shared mode. If the call is successful, the calling thread takes ownership of the lock.
SRWLock [in, out]A pointer to the SRW lock.
If the lock is successfully acquired, the return value is nonzero.
if the current thread could not acquire the lock, the return value is zero.
Successful acquisition of an SRW lock in shared mode typically permits other threads to acquire the same lock in shared mode, but doesn't guarantee that such acquisitions always succeed. An SRW lock may limit its simultaneous shared mode acquisitions for performance reasons.
Slim Reader/Writer (SRW) Locks
Vertdll APIs available in VBS enclaves