GetCurrentThreadId

  • Thread starter Thread starter Tibor Meinczinger
  • Start date Start date
T

Tibor Meinczinger

Hi,

how can I find out the id of the current thread in the
compact framework? Is there a managed solution, or should
I call the GetCurrentThreadId function? If yes,
in which CE-dll can I find the GetCurrentThreadId function?
Thanks,
zeppi
 
Alex,

I have tried the sample. It worked fine on the desktop.
On the device it works as well, however the id is
negative, which may not be a problem. I try to use the
id in SetWindowsHookEx, which fails with a
NotSupportedException, and I have know other idea, why.
Thanks,

Tibor
 
Callbacks code is still waiting to be intergrated into the OpenNETCF
namespace because I haven't had a chance to add the code for ARM on Windows
CE.NET 4.2 - it requires writing a new assembly language stub
 
Back
Top