title: c++ get Process.GetCurrentProcess().SessionId
body: <p>In c# we can get Current user process id by using this method  in Windows <code>Process.GetCurrentProcess().SessionId;</code></p>
  
  <p>how can we do this in c++.</p>