[DllImport("kernel32.dll")] => how in WinCe?

  • Thread starter Thread starter Jeroen CEuppens
  • Start date Start date
J

Jeroen CEuppens

Hi, anybody any idea how I can get these apicall out of my CE kernel?



This import is good for WinXp, but for CE not, ....

[DllImport("kernel32.dll")]

extern static short QueryPerformanceCounter(ref long x);

[DllImport("kernel32.dll")]

extern static short QueryPerformanceFrequency(ref long x);



THx
Jeroen
 
In windows ce kernel functions can be found in the coredll.dll file. Also
the return type for these functions is bool and not short (According to
Pocket PC SDK documentation).
[DllImport("coredll.dll")]
extern static bool QueryPerformanceCounter(ref long x);

[DllImport("coredll.dll")]
extern static bool QueryPerformanceFrequency(ref long x);

Peter
 

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