GetCurrentProcessID

  • Thread starter Thread starter Mike Scott
  • Start date Start date
M

Mike Scott

Hello All

I've tried to P/Invoke GetCurrentProcessID() without success - raises a
missing method exception:

[DllImport("coredll.dll")]
private static extern uint GetCurrentProcessID() ;

This has to be about as simple as it gets. Where is GetCurrentProcessID()
???!!!!

Cheers,

MikeS.
 
Thanks a lot Alex - that's what I suspected and needed!

Cheers,

MikeS.

Alex Feinman said:
In Windows CE GetCurrentProcess, GetCurrentProcessID, GetCurrentThread,
GetCurrentThreadID and a few others are defines, not real functions.
The way to use these functions in CF applications is demonstrated here:
http://www.alexfeinman.com/download.asp?doc=kfuncs.zip


Mike Scott said:
Hello All

I've tried to P/Invoke GetCurrentProcessID() without success - raises a
missing method exception:

[DllImport("coredll.dll")]
private static extern uint GetCurrentProcessID() ;

This has to be about as simple as it gets. Where is GetCurrentProcessID()
???!!!!

Cheers,

MikeS.
 
Back
Top