Can we get current process id

Can we get current process id (ID that refer to process in wmMonitor / value in WMPROCESS.INSTANCEID).I want to keep that ID with my application’s transaction for later reference.

You might want to check out the classes (decompile) in the WmMonitor package. Also the source of the DSP pages will shed quite some light on the how & why of the services in there.

Good luck