Archive: Why isGetCurrentProcessID failing?


Why isGetCurrentProcessID failing?
So, I'm making the following call:

System::Call 'kernel32::GetCurrentProcessID(v) i.R0 ?e'
Pop $0
MessageBox MB_OK "Process ID = $R0, lasterr = $0"


The resulting messagebox always reads

'Process ID = error, lasterr = 0'

I do the same for GetCurrentThreadID(), and get the same result. Other calls seem to work fine. What could I be doing wrong?


It's GetCurrentProcessId not GetCurrentProcessID.

Stu


D'oh!

Geez, I hate that. Thanks.