I want to get the current process id in a JScript script. This identifier is returned by the Windows API function GetCurrentProcessId ( http://msdn.microsoft.com/en-us/library/ms683180.aspx ). How can I call this function in JScript?
This clearly does not work:
var id = GetCurrentProcessId(); WScript.Echo("ProcessId is " + id);
javascript winapi
harper
source share