# MX\_GETPID _Reviewed April 2024_ **xcall MIAMEX, MX\_GETPID, pid** MX\_GETPID (MIAMEX 104) retrieves your current process ID number. **Parameters** _pid_ ([Unsigned Int](integer-unsigned.md), 32 bits) \[out\] returns your process ID. Note that while the maximum _pid_ varies from one operating system to another, to be safe you should allow for a 32 bit integer. **Comments** A process ID (aka PID) is a positive integer which uniquely identifies a process. They are assigned by the operating system when the process is created, and recovered (for subsequent reuse) when the process terminates. PIDs are most useful in Unix, where they are the most common way to identify or communicate with another process. They are less useful but still valid in the Windows environment.