The following code correctly returns the pid for Kix32.exe.

Code:
break on
$iRC=SETOPTION('WrapAtEOL','on')
$HABObject = createobject("HBullock.AdminObjects")
if vartypename($HABObject) <> "Object"
? "@serror"
endif

$GetProcessID = $HABObject.Win32API ("kernel32", "int GetCurrentProcessId()")
? vartypename($GetProcessID)
$pid = $GetProcessID.Call
? "pid = " + $pid
get $x



I am not an API person, can someone post in this thread a couple API calls that I can use for further testing?


Edited by Howard Bullock (2005-07-22 07:44 PM)
_________________________
Home page: http://www.kixhelp.com/hb/