[rcore] Process manipulation API for Windows and POSIX-compliant platforms#5822
[rcore] Process manipulation API for Windows and POSIX-compliant platforms#5822konakona418 wants to merge 4 commits intoraysan5:masterfrom
Conversation
d4d050c to
5472b6c
Compare
|
There have been a few updates, so I will squash them together |
e51f360 to
24b36ef
Compare
|
@konakona418 thanks for working on this addition, I think it still requires some work but it's a good start... Windows support should definitely be there... |
|
Hi @raysan5 |
e7bab26 to
9b21238
Compare
|
Hello @raysan5 I just implemented the API for Windows except for And about this patch some questions remain:
Please let me know if more adjustments are required! |
orcmid
left a comment
There was a problem hiding this comment.
As difficult as it might appear, shouldn't these be handled at the platform level?
Perhaps there is no meaningful POSIX distinction with respect to platforms?
|
Hi @orcmid Currently I followed the existing method applied to a few similar functions in rcore.c, which handles platforms via |
|
Hello @raysan5 I finished working on process suspension and resuming just now, in which i dynamically loaded and used the ntdll internal functions But still, I'm not sure whether dynamic loading Nt* functions is a good idea for raylib or not. What's your opinion? |
d472b7e to
fc3cac5
Compare
I noticed that in the wishlist for raylib7.0 (#5710) there are plans for process manipulation APIs, so I wrote the following functions for posix-compliant platforms:
InitProcessto launch a new processCheckProcesswhich checks whether a process is still runningPauseProcessto pause executionCloseProcessto terminate a processAnd a counterpart for
PauseProcess:ResumeProcessPlease let me know if any changes need to be made!