ViDeadlockDetectionTryConvertSharedToExclusive

UINT64 __stdcall ViDeadlockDetectionTryConvertSharedToExclusive(){
  UINT64 result; 

  result = ExTryConvertSharedSpinLockExclusive(&ViDeadlockDatabaseLock);
  if( (_DWORD)result )
    ViDeadlockDatabaseOwner = (__int64)KeGetCurrentThread();
  return result;
}

Referenced by:

VfDeadlockBeforeCallDriver
ViDeadlockRemoveMemoryRangeResources
ViDeadlockRemoveMemoryRangeThreads