January 1, 2005

WinTask - GetCurrentProcessId

'
' GetCurrentProcessId - Get the Process ID (PID) of the current process
' Here, that would be the PID from TaskExec.exe
'
' Author - Joe Strazzere
'

DIM myPID As Unsigned
myPID=External("kernel32","GetCurrentProcessId")