plibsys  0.0.4
Functions
pprocess.h File Reference

Process information. More...

#include <pmacros.h>
#include <ptypes.h>

Go to the source code of this file.

Functions

P_LIB_API puint32 p_process_get_current_pid (void)
 Gets a PID of the calling process. More...
 
P_LIB_API pboolean p_process_is_running (puint32 pid)
 Checks whether a process with a given PID is running or not. More...
 

Detailed Description

Process information.

Author
Alexander Saprykin

A process is an executing unit in an operating system with its own address space. Every process can be identified with a unique identifier called PID. To get a PID of the currently running process call p_process_get_current_pid(). To check whether a process with a given PID is running up use p_process_is_running().

Definition in file pprocess.h.

Function Documentation

◆ p_process_get_current_pid()

P_LIB_API puint32 p_process_get_current_pid ( void  )

Gets a PID of the calling process.

Returns
PID of the calling process.
Since
0.0.1

◆ p_process_is_running()

P_LIB_API pboolean p_process_is_running ( puint32  pid)

Checks whether a process with a given PID is running or not.

Parameters
pidPID to check for.
Returns
TRUE if the process with the given PID exists and is running up, FALSE otherwise.
Since
0.0.1