Enable Touch Screen Of Car Multimedia WinCE

0

I have a car use multimedia system (wince 6.0)(to play music and...) and I want to write a beautiful and professional program for my car.

I have full access to update system and change the main application but I have a problem ! the touch screen /:

when I have closed the main application from task manager ,I saw desktop of wince and my touch is going to stop and not working anymore !

so I have opened the main application with IDA and I found this function : (Main Application developed with MFC)

Touch Function IMG

and decompile it with snowman/ :

Decompile with SNOWMAN

and this is my calibration data :

"CalibrationData"="1402,1357 2594,2341 2596,368 193,349 197,2353 "

I know this function enable the touch screen because I saw this function inside another application worked with touch(UPDATER OF SYSTEM).

I Used This Codes :

   [DllImport("coredll")]
    private static extern bool TouchCalibrate();   

    [DllImport("coredll.dll", EntryPoint = "RegFlushKey", SetLastError = true)]
    public static extern uint RegFlushKey(uint hKey); 

    const uint HKEY_LOCAL_MACHINE = 0x80000002;

    public Form1()
    {
        InitializeComponent();
        touchCalibrate();
    }

    public void touchCalibrate()
    {
        TouchCalibrate();
        RegFlushKey(HKEY_LOCAL_MACHINE);
    } /// Result : just Opened calibration screen without touch.

AND :

[DllImport("coredll.dll", SetLastError = true)]
private static extern IntPtr GetDesktopWindow();

[DllImport("touch.dll", SetLastError = true)]
private static extern bool TouchRegisterWindow(IntPtr hwnd);

[DllImport("touch.dll", SetLastError = true)]
private static extern void TouchUnregisterWindow(IntPtr hwnd);

public static void Enable()
{
    TouchUnregisterWindow(GetDesktopWindow());
}   /// Result : touch.dll ERROR.

How can i enable touch in my program (c# or C++)?

How Can i extract function and use it in my application ??

//Sorry for my bad English !

///UPDATE : ///

I found this : windows mobile disable touch input

But I don't have any touch.dll

How can i link that in my project ?

c#
c++
touch
windows-ce
ida
asked on Stack Overflow May 14, 2018 by JLL • edited May 15, 2018 by JLL

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0