Организация ввода-вывода. Часть 1. Виртуальные драйверы и виртуальное окружение WINDOWS. Рощин А.В. - 75 стр.

UptoLike

Составители: 

75
BOOL OnCreateThread(PTCB tcb)
{ WORD err;
int count;
DPRINTF(buf, "Create_Thread: VM=%x, tcb=%x\r\n", tcb->TCB_VMHandle, tcb);
_Sprintf(buf, "Create_Thread: VM=%x, tcb=%x\r\n", tcb->TCB_VMHandle, tcb);
count = IFSMgr_Ring0_WriteFile(FALSE, fh, buf, strlen(count), filepos, &err);
filepos += count;
return TRUE;
}
VOID OnDestroyThread(PTCB tcb)
{ WORD err;
int count;
DPRINTF( buf, "Destroy_Thread VM=%x, tcb=%x\r\n", tcb->TCB_VMHandle, tcb );
_Sprintf( buf, "Destroy_Thread VM=%x, tcb=%x\r\n", tcb->TCB_VMHandle, tcb );
count = IFSMgr_Ring0_WriteFile(FALSE, fh, buf, strlen(count), filepos, &err);
filepos += count;
}
                                         75



BOOL OnCreateThread(PTCB tcb)
{ WORD err;
  int count;

    DPRINTF(buf, "Create_Thread: VM=%x, tcb=%x\r\n", tcb->TCB_VMHandle, tcb);
    _Sprintf(buf, "Create_Thread: VM=%x, tcb=%x\r\n", tcb->TCB_VMHandle, tcb);
    count = IFSMgr_Ring0_WriteFile(FALSE, fh, buf, strlen(count), filepos, &err);
    filepos += count;
    return TRUE;
}

VOID OnDestroyThread(PTCB tcb)
{ WORD err;
  int count;

    DPRINTF( buf, "Destroy_Thread VM=%x, tcb=%x\r\n", tcb->TCB_VMHandle, tcb );
    _Sprintf( buf, "Destroy_Thread VM=%x, tcb=%x\r\n", tcb->TCB_VMHandle, tcb );
    count = IFSMgr_Ring0_WriteFile(FALSE, fh, buf, strlen(count), filepos, &err);
    filepos += count;
}