Activation API
Function to retrieve PID