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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top