In Windows CE it is a trivial thing to conditionally compile something if KITL is enabled:
#if IMGNOKITL == 1
DoSomething();
#else
DoSomethingElse();
#endif
But I need to produce a user mode application that detects at runtime if KITL is enabled or not. It is possible?
I tried to look for such a function in Windows CE 6 and could not find anything. Why don’t you add your own global variable to the OAL:
And then add a kernel IOCTL that returns the value of that variable. That way when you move between Windows CE versions the method will still work for sure (as long as the IMGNOKITL variable does not change).