[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
 
Back
Top