Application.Id (gb)

Static Property Read Id As Integer

Returns the system pid (process identifier) of your program. This returns the same value as the property named Handle.