Retrieves the number of locks that current thread holds.
This method supports the .NET Framework infrastructure and is not intended to be used directly from your code.
HRESULT LocksHeldByLogicalThread( [out] DWORD *pCount );
[out] A pointer to the number of locks that the current thread holds.
Platforms: See System Requirements.
Library: Included as a resource in MSCorEE.dll
.NET Framework Versions: 1.0, 1.1