Note
Kailangan ng pahintulot para ma-access ang page na ito. Maaari mong subukang mag-sign in o magpalit ng mga direktoryo.
Ang pag-access sa pahinang ito ay nangangailangan ng pahintulot. Maaari mong subukang baguhin ang mga direktoryo.
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.
Syntax
BOOLEAN TryAcquireSRWLockShared(
[in, out] PSRWLOCK SRWLock
);
Parameters
[in, out] SRWLock
A pointer to the SRW lock.
Return value
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.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 7 [desktop apps | UWP apps] |
| Minimum supported server | Windows Server 2008 R2 [desktop apps | UWP apps] |
| Target Platform | Windows |
| Header | synchapi.h (include Windows.h) |
| Library | Kernel32.lib |
| DLL | Kernel32.dll |