table of contents
- trixie 3.2.10+ds-1
 - testing 3.2.26+ds-1
 - unstable 3.2.26+ds-2
 - experimental 3.3.2+git20251103~dc5b136+ds-1
 
| SDL_GetProcessProperties(3) | SDL3 FUNCTIONS | SDL_GetProcessProperties(3) | 
NAME¶
SDL_GetProcessProperties - Get the properties associated with a process.
HEADER FILE¶
Defined in SDL3/SDL_process.h
SYNOPSIS¶
#include "SDL3/SDL.h"
SDL_PropertiesID SDL_GetProcessProperties(SDL_Process *process);
DESCRIPTION¶
The following read-only properties are provided by SDL:
• SDL_PROP_PROCESS_PID_NUMBER : the process
  
   ID of the process.
• SDL_PROP_PROCESS_STDIN_POINTER : an
SDL_IOStream
  
   that can be used to write input to the
  
   process, if it was created with
SDL_PROP_PROCESS_CREATE_STDIN_NUMBER set to SDL_PROCESS_STDIO_APP .
• SDL_PROP_PROCESS_STDOUT_POINTER : a
  
   non-blocking SDL_IOStream
  
   that can be used to read output
  
   from the process, if it was created with
SDL_PROP_PROCESS_CREATE_STDOUT_NUMBER set to SDL_PROCESS_STDIO_APP .
• SDL_PROP_PROCESS_STDERR_POINTER : a
  
   non-blocking SDL_IOStream
  
   that can be used to read error
  
   output from the process, if it was created with
SDL_PROP_PROCESS_CREATE_STDERR_NUMBER set to SDL_PROCESS_STDIO_APP .
• SDL_PROP_PROCESS_BACKGROUND_BOOLEAN :
  
   true if the process is running in the background.
FUNCTION PARAMETERS¶
- process
 - the process to query.
 
RETURN VALUE¶
( SDL_PropertiesID ) Returns a valid property ID on success or 0 on failure; call SDL_GetError () for more information.
THREAD SAFETY¶
It is safe to call this function from any thread.
AVAILABILITY¶
This function is available since SDL 3.2.0.
SEE ALSO¶
•(3), SDL_CreateProcess(3), •(3), SDL_CreateProcessWithProperties(3)
| SDL 3.2.10 | Simple Directmedia Layer |