I just wrapped this in NB last week, so if you have NativeBoost and Windows
you can use:

  NBWin32Process getCurrentProcessId  

(requires the latest packages from 
http://smalltalkhub.com/#!/~Pharo/NativeBoost)

I'm sure on any other platforms there are API's as well to get the PID, like
getpid on Unix. Should be easy to wrap in NB if you follow this tutorial:

https://ci.inria.fr/pharo-contribution/job/PharoForTheEnterprise/lastSuccessfulBuild/artifact/NativeBoost/NativeBoost.pier.html

Bye
T.




Reply via email to