sdlKillProcess function
Stop a process.
\param process The process to stop. \param force true to terminate the process immediately, false to try to stop the process gracefully. In general you should try to stop the process gracefully first as terminating a process may leave it with half-written data or in some other unstable state. \returns true on success or false on failure; call SDL_GetError() for more information.
\threadsafety This function is not thread safe.
\since This function is available since SDL 3.1.3.
\sa SDL_CreateProcess \sa SDL_CreateProcessWithProperties \sa SDL_WaitProcess \sa SDL_DestroyProcess
extern SDL_DECLSPEC bool SDLCALL SDL_KillProcess(SDL_Process *process, bool force)
Implementation
bool sdlKillProcess(Pointer<SdlProcess> process, bool force) {
final sdlKillProcessLookupFunction = libSdl3.lookupFunction<
Uint8 Function(Pointer<SdlProcess> process, Uint8 force),
int Function(Pointer<SdlProcess> process, int force)>('SDL_KillProcess');
return sdlKillProcessLookupFunction(process, force ? 1 : 0) == 1;
}