ObIsDosDeviceLocallyMapped
INT64 __stdcall ObIsDosDeviceLocallyMapped(UINT64 DriveIndex, UINT8 *LocallyMapped){
__int64 v2;
__int64 *CurrentServerSiloGlobals;
_ETHREAD *CurrentThread;
__int64 *v6;
v2 = (unsigned int)(DriveIndex - 1);
if( (unsigned int)v2 > 0x19 )
return 3221225485i64;
CurrentServerSiloGlobals = PsGetCurrentServerSiloGlobals();
CurrentThread = (_ETHREAD *)KeGetCurrentThread();
v6 = CurrentServerSiloGlobals;
--*((_WORD *)CurrentThread + 243);
ExAcquirePushLockSharedEx((UINT64)(CurrentServerSiloGlobals + 15), 0i64);
*LocallyMapped = *((_DWORD *)v6 + v2 + 3) != 0;
ExReleasePushLockEx((UINT64)(v6 + 15), 0i64);
KiLeaveGuardedRegionUnsafe((__int64)KeGetCurrentThread());
return 0i64;
}Referenced by:
No references.