DebugSetProcessKillOnExit function Null safety kernel32

int DebugSetProcessKillOnExit(
  1. int KillOnExit
)

Sets the action to be performed when the calling thread exits.

BOOL DebugSetProcessKillOnExit(
  BOOL KillOnExit
);

Implementation

int DebugSetProcessKillOnExit(int KillOnExit) {
  final _DebugSetProcessKillOnExit = _kernel32.lookupFunction<
      Int32 Function(Int32 KillOnExit),
      int Function(int KillOnExit)>('DebugSetProcessKillOnExit');
  return _DebugSetProcessKillOnExit(KillOnExit);
}