PnpStartDevice

NTSTATUS __stdcall PnpStartDevice(PDEVICE_OBJECT Device, PIO_COMPLETION_ROUTINE CompletionRoutine, PVOID Context){
  __int64 v6; 
  PVOID v7; 
  INT64 result[10]; 
  if( Device )
    v6 = *(_QWORD *)(*((_QWORD *)Device + 39) + 40i64);
  else
    v6 = 0i64;
  PoFxPrepareDevice(v6, 1);
  *(_DWORD *)(v6 + 156) = 1;
  memset((INT64)result, 0i64);
  result[1] = *(_QWORD *)(v6 + 416);
  result[2] = *(_QWORD *)(v6 + 424);
  LOWORD(result[0]) = 27;
  return PnpSendIrp(Device, (PIO_STACK_LOCATION)result, v7, CompletionRoutine, Context);
}

Referenced by:

PnpStartDeviceNode