TtmpDispatchSetDisplayTimeouts
INT64 __fastcall TtmpDispatchSetDisplayTimeouts(INT64 rcx0){
int v2;
UINT64 *v3;
unsigned int v4;
struct _DMA_ADAPTER *v5;
UINT64 *a1;
PADAPTER_OBJECT DmaAdapter;
a1 = 0i64;
DmaAdapter = 0i64;
v2 = TtmpAcquireSessionFromTerminalHandle(*(VOID **)(rcx0 + 8), 1, 1, &a1, (INT64 *)&DmaAdapter);
v3 = a1;
v4 = v2;
v5 = DmaAdapter;
if( v2 >= 0 )
{
if( !HIDWORD(DmaAdapter[1].DmaOperations) )
*((_BYTE *)a1 + 240) = 0;
TtmiTerminalSetDisplayTimeouts(v3, (INT64)v5, *(unsigned int *)(rcx0 + 16), *(unsigned int *)(rcx0 + 20));
v4 = 0;
}
else
{
TtmiLogError((PSTR)"TtmpDispatchSetDisplayTimeouts", 543i64, (unsigned int)v2, (unsigned int)v2);
}
if( v3 )
{
ExReleaseResourceLite(&TtmpSessionLock);
KeLeaveCriticalRegion();
}
if( v5 )
HalPutDmaAdapter(v5);
return v4;
}Referenced by:
TtmDispatchApi