ViDeadlockDetectionTryConvertSharedToExclusive

INT64 __fastcall ViDeadlockDetectionTryConvertSharedToExclusive(){
  INT64 result; 
  result = ExTryConvertSharedSpinLockExclusive((INT64 *)&ViDeadlockDatabaseLock);
  if( (_DWORD)result )
    ViDeadlockDatabaseOwner = (__int64)KeGetCurrentThread();
  return result;
}

Referenced by:

VfDeadlockBeforeCallDriver
ViDeadlockRemoveMemoryRangeResources
ViDeadlockRemoveMemoryRangeThreads