[DllImport("kernel32.dll")]
static extern uint GetCurrentProcessId();
Declare Function GetCurrentProcessId Lib "kernel32" () As Integer
None.
None.
Please add some!
class FindMyself
{
[DllImport("kernel32.dll")]
public static extern uint GetCurrentProcessId();
}
class WhoAmI
{
private void LookUp()
{
uint MyID = FindMyself.GetCurrentProcessId();
}
}
Process.GetCurrentProcess().Id