how to get current process ID and machine name in C++
<p>In C#, it is straightforward to get the current process ID and machine name:</p>

<pre><code>int processID = Process.GetCurrentProcess().Id;
string machineName = Environment.MachineName;
</code></pre>

<p>How can I retrieve them in native C++?</p>

<p>Thanks in advance. </p>
