Compact Framework 使用 p/invoke 调用输入法选项

发布于 2024-09-13 04:38:08 字数 306 浏览 4 评论 0原文

我已经在基于紧凑框架的应用程序中实现了 ap/invoke 命令,该应用程序调用 Windows 校准屏幕。

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

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

有谁知道 p/invoke 命令来调用位于设置 -> 中的输入设置屏幕输入。视窗移动6.1。

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 TouchCalibrate();

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

岁吢 2024-09-20 04:38:08

您可以使用 \Windows\ctlpnl.exe 可执行文件以及正确的命令行参数在控制面板中打开设置小程序。

链接提供了控制面板快捷方式中使用的命令行参数列表。

此示例在输入设置控制面板小程序中打开输入法选项卡:

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

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();
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文