SDL_GetProcessProperties(3)
π SDL_GetProcessProperties β the SDL3 functions glow-up π
okay so bestie, we're in the SDL_GetProcessProperties(3) page and it's giving "let me peek at what my lil process is actually made of" β¨
πΈ NAME πΈ
SDL_GetProcessProperties β grab the properties that are tied to a process, no cap π«Ά
π SYNOPSIS π
#include <SDL3/SDL_process.h>
SDL_PropertiesID SDL_GetProcessProperties(SDL_Process *process);
π¦ DESCRIPTION π¦
so SDL is literally handing you these read-only properties, and you're not allowed to touch them, only admire them π :
SDL_PROP_PROCESS_PID_NUMBERβ the process ID of the process. yes bestie, the whole point of a process ID, iconic.SDL_PROP_PROCESS_STDIN_POINTERβ anSDL_IOStreamyou can use to write input into the process, but only if it was created withSDL_PROP_PROCESS_CREATE_STDIN_NUMBERset toSDL_PROCESS_STDIO_APP. conditional queen πSDL_PROP_PROCESS_STDOUT_POINTERβ a non-blockingSDL_IOStreamyou can use to read output from the process, but only if it was created withSDL_PROP_PROCESS_CREATE_STDOUT_NUMBERset toSDL_PROCESS_STDIO_APP.SDL_PROP_PROCESS_STDERR_POINTERβ a non-blockingSDL_IOStreamyou can use to read the error output from the process, but only if it was created withSDL_PROP_PROCESS_CREATE_STDERR_NUMBERset toSDL_PROCESS_STDIO_APP. yes, the drama channel of your process πSDL_PROP_PROCESS_BACKGROUND_BOOLEANβtrueif the process is running in the background. main character but off-screen, honestly.
fr fr, all of these are read-only. look, don't touch.
π FUNCTION PARAMETERS π
processβ the process you want to query, aka the one we're being nosy about π
β RETURN VALUE β
returns a valid property ID on success, or 0 on failure. and if it fails? call SDL_GetError() for more info, she'll tell you what went wrong π
π THREAD SAFETY π
it is safe to call this function from any thread. multi-threaded baddies, this one's for you π§
π AVAILABILITY π
this function is available since SDL 3.2.0. vintage-ish but still fresh β¨
π₯ SEE ALSO π₯
and that's the whole page, bestie, you ate π
Simple Directmedia Layer β’ SDL 3.4.18 β’ SDL_GetProcessProperties(3) β mwah, tysm for reading, ily, go forth and query those processes πππ¦
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms