FsRtlBalanceReads

NTSTATUS __stdcall FsRtlBalanceReads(PDEVICE_OBJECT TargetDevice){
  IRP *v2; 
  NTSTATUS result; 
  struct _IO_STATUS_BLOCK IoStatusBlock; 
  struct _KEVENT Event; 
  memset(&Event, 0, sizeof(Event));
  IoStatusBlock = 0i64;
  KeInitializeEvent(&Event, NotificationEvent, 0);
  v2 = IoBuildDeviceIoControlRequest(0x66001Bu, TargetDevice, 0i64, 0, 0i64, 0, 0, &Event, &IoStatusBlock);
  if( !v2 )
    return -1073741670;
  result = IofCallDriver(TargetDevice, v2);
  if( result == 259 )
  {
    KeWaitForSingleObject(&Event, Executive, 0, 0, 0i64);
    return IoStatusBlock.Status;
  }
  return result;
}

Referenced by:

No references.