locked
How to use getThreadTimes() or how to check kernel and user times of All the threads. RRS feed

  • Question

  • Dear folks,

    Hello~ I have tried to use getThreadTimes() in WM 6.
    In WM 6 there is no function such as SetProcPermission()...

    getThreadTimes() returens a proper times for few processes such as the application which is getThreadTimes is called.
    For NK process it returns always the same value.

    Is anyone who can help me using this getThreadTimes()?
    Or is there any other ways to check kernel and user times of All the threads.

    Cheers,
    Jaesu
    Saturday, April 25, 2009 12:15 PM

Answers

  • The easiest way to solve this problem is to declare them in your own code:

    extern "C" DWORD SetProcPermissions(DWORD newperms);
    extern "C" DWORD GetCurrentPermissions (void);

    http://pocketpcdn.com/forum/viewtopic.php?t=10085&start=0&postdays=0&postorder=asc&highlight=&sid=566c65e86403e972d05958758e061de6

    Then works fine~~~:D
    • Marked as answer by Jaesu Yu Saturday, April 25, 2009 12:40 PM
    Saturday, April 25, 2009 12:40 PM