Keybd_event for CE 5.0 device

Hi

I need to remapp some keys on a CE 5.0 terminal, and send some characters to the screen on KeyDown event. I'm using Visual Studio 2005. All the samples I have seen is using coredll.dll or user32.dll, but I can not add them to my project



Answer this question

Keybd_event for CE 5.0 device

  • John Lockhart

    Hi

    You don't need to add coredll.dll to your project at all - this dll is always present on any Windows CE device.

    If you're using Managed Code (C#, VB.NET): Just add the appropriate P/Invoke declaration to your project.
    If you're using Native C++: Make sure link against 'coredll.lib' (which sould be set by default)



  • Andreas Leitel

    Hi Mark Thank's for the reply,

    it is now working, I'm able to sendt 0-9 and A-Z, but not , and .

    I'm sending to Notepad in Remote Desctop Connection

    keybd_event(&H2C, 0, 0, 0) 'key down 2C=,

    keybd_event(&H2C, 0, 2, 0) 'key up


  • Keybd_event for CE 5.0 device