Skip to content

memory.get_process_id( process )

Description

Retrieves the process ID (PID) of a running process by its name or hash.

Arguments

Argument Type Description
process string / number process name or fnv1a hash

Example

pid = memory.get_process_id( 'explorer.exe' )
utility.println( 'processid: ' .. pid )

Returns

number - process ID if found, -1 if not found