在 Windows mobile 5+ 中设置文件关联 [英] Setting file associations in Windows mobile 5+

查看:21
本文介绍了在 Windows mobile 5+ 中设置文件关联的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

它与 Windows 中的基本相同,但是当您尝试将文件关联设置为位于包含空格的文件夹中的程序时,您需要获取该文件夹的短"名称.在常规窗口中,我使用这个:

Its basically the same as in windows, but when your trying to set file associations to a program that lives inside a folder that has spaces in it you need to get the "short" name of that folder. In regular windows i use this:

[System.Runtime.InteropServices.DllImport("Kernel32.dll")]私有静态外部单元GetShortPathName(string lpszLongPath,[出] StringBuilder lpszShortPath,uint cchBuffer);

[System.Runtime.InteropServices.DllImport("Kernel32.dll")] private static extern uint GetShortPathName(string lpszLongPath, [Out] StringBuilder lpszShortPath, uint cchBuffer);

所以我的问题变成了,有没有人知道我可以用来替换上述函数的内置函数,或者知道这个函数的作用,以便我可以在 C# 中重新创建它.

So my question becomes, does anyone know of a built in function i can use to replace the above function, or know of a exacly what this function does so i could recreate it in C#.

推荐答案

作为 WinMo 基础的 Windows CE 不使用 8.3 文件命名,所以我确定你不需要使用它们用于定义文件关联.

Windows CE, which is the base of WinMo, doesn't use 8.3 file naming for anything, so I'm certain that you don't need to use them for defining file associations.

这篇关于在 Windows mobile 5+ 中设置文件关联的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆