开发者

Compact Framework call Input Method Options with p/invoke

开发者 https://www.devze.com 2023-01-11 00:07 出处:网络
I have implemented a p/invoke command in my compact framework based application which invokes the windows calibrate screen.

I have implemented a p/invoke command in my compact framework based application which invokes the windows calibrate screen.

[DllImport("coredll.dll")]
    private extern static bool TouchCal开发者_运维百科ibrate();

btnAlignScreen.Click += delegate
        {
            TouchCalibrate();
        };

Does anyone know the p/invoke command to invoke the input settings screen located in Settings -> Input. Windows Mobile 6.1.


You can open up settings applets in the control panel by using the \Windows\ctlpnl.exe executable along with the proper command line arguments.

This link provides a list of the command line arguments used in the shortcuts in the control panel.

This example opens up the input method tab in the input settings control panel applet:

Process myProcess = new Process();
myProcess.StartInfo.FileName = @"\Windows\ctlpnl.exe";
myProcess.StartInfo.Arguements = "cplmain.cpl,8";
myProcess.Start();
0

精彩评论

暂无评论...
验证码 换一张
取 消