Windows CE 文件系统

发布于 2024-09-15 14:52:18 字数 72 浏览 4 评论 0原文

我需要找出 Windows Mobile 6.5 的 LG 手机中安装了哪个文件系统。有谁知道怎么办?

提前致谢。

I need to discover which file system is installed in a LG phone with windows mobile 6.5. Does anyone knows how?

thanks in advance.

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

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

发布评论

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

评论(3

哀由 2024-09-22 14:52:18

使用 ActiveSync 连接到设备并打开远程注册表编辑器。在 HKLM\Drivers\Active 键中搜索 DSKx: 值,其中 x 是一个数字(您也可以使用 FindFirstStoreFindNextStore )。
完成后,您可以使用 OpenStore 打开商店。然后,您可以使用 FindFirstPartition 和 FindNextPartition 找到第一个分区,打开存储上的分区并查看文件系统类型(在 PARTINFO 结构中) 。

使用存储管理器 API 来完成这一切。

Connect to the device using ActiveSync and open a remote registry editor. Searcht eh HKLM\Drivers\Active key for a value of DSKx: where x is a number (you can also use FindFirstStore and FindNextStore for that).
Once you have that you can open the store with OpenStore. Then you can find the first partition with FindFirstPartition and FindNextPartition, open the partition on the store and see the filesystem type (in the PARTINFO struct).

Use the Storage Manager API to do all this.

小红帽 2024-09-22 14:52:18

最有可能的是FAT(尽管不一定是),但这并没有多大帮助。你不能很容易地用它来填充(无论是阅读还是写作)。您还必须注意有两组文件系统。 ROM 和 RAM,ROM 是只读的,并不总是可以读/写形式访问。 ROM 文件系统保存了大部分系统文件。 RAM 文件系统是存储所有用户数据的FAT 文件系统。

使用存储管理器 API 将为您提供 RAM 文件系统和任何连接的存储设备的详细信息。

如果您确实愿意,可以使用 DeviceIoControl DISK_IOCTL_WRITE / DISK_IOCTL_WRITE 逐扇区访问 RAM 驱动器。

为什么需要知道文件系统是什么?

更新:

所以实际的问题是:“我需要知道为什么我不能在同一文件夹中创建更多具有相同扩展名的 1000 个文件。但我可以从不同的扩展名创建超过 1000 个文件?”

其实你可以。问题是,在 Windows Mobile 设备(我尝试过的所有设备)上,目录条目的创建会减慢您创建的更多目录条目。一旦达到 5000 个文件左右,创建目录条目可能需要 5 分钟。我创建了测试应用程序,它创建了零长度文件,并且花了近 48 小时在一台设备上创建 5000 个文件!所以是的,可以,但是文件的创建非常慢。我通常尝试将一个目录中的文件数量限制在 500 个左右。所以我的建议是将文件拆分到目录中,每个目录最多可包含 500 个文件。或者以您自己的文件格式/数据库存储数据。要么会很快。

Most likely it's FAT (altho it doesn't have to be), but that doesn't really help you much. You can't really stuff with it very easily (either reading or writing). Also you have to be aware that there are two sets of filesystems. ROM and RAM, ROM is readonly and isn't always accessible in a read/write form. The ROM filesystem holds most of the system files. The RAM filesystem is the FAT filesystem where all the user data is stored.

Using the Storage Manager API will give you a breakdown of the RAM filesystem and any attached storage devices.

If you really want to you can access the RAM drive sector by sector using DeviceIoControl DISK_IOCTL_WRITE / DISK_IOCTL_WRITE.

Why do you need to know what the filesystem is?

Update:

So the actaul question is: "I need to know why cant i create more de 1000 files with same extension at same folder. But i can create more than 1000 files from different extensions?"

Actually you can. The problem is that on Windows Mobile devices (all the I have tried) is that the creation of the directory entry slows down the more directory entries you create. Once you get to around the 5000 files mark it can take 5 min's to create the directory entry. I've created test applications where it created zero length file and it took almost 48 hours to create 5000 files on one device!!! So yes it can but the creation of the files is very slow. I normally try to limit the number of files in one directory to around the 500 mark. So my advice would be to split the files into directories with a max for upto 500 files by directory. Or store the data in your own file format / database. Either will be speedy.

二智少女猫性小仙女 2024-09-22 14:52:18

我知道这是一个老问题,但我最近一直在尝试解决这个问题,并认为我会在这里添加一些信息以帮助遇到此问题的其他人。

我需要知道为什么我不能在同一文件夹中创建更多具有相同扩展名的 1000 个文件。但我可以创建超过 1000 个不同扩展名的文件。

这是 Windows CE 存储文件信息方式的限制。

Windows Mobile 2003 for Pocket PC、Windows Mobile 2003 for Smartphone、Windows CE 平台 注意:Windows CE 无法存储更多内容
当文件共享同一个短文件时,目录中的文件数超过 999 个
名称(即八个字符的名称、句点 (.) 和 3 个字符
扩大)。解决方法是确保短文件名
不同的。例如,如果文件名为 Longfilename0001.txt
通过 Longfilename1000.txt,将数字放在开头
文件名而不是末尾。

FileMode 枚举

基本上当您在 WinCE 上创建文件时,它会根据您指定的名称生成一个短文件名。我无法确定在 WinCE 上生成短文件名的确切方法,但它可能涉及截断名称并附加某种计数器或哈希来生成名称。问题是它只能从相似的长名称生成 999 个短名称。文件名开头或扩展名的种类越多,用完短名称的可能性就越小。

I know this is an old question but I've been trying to deal with this issue lately and figured I would add some information here to help anyone else that comes across this issue.

I need to know why cant i create more de 1000 files with same extension at same folder. But i can create more than 1000 files from different extensions.

This is a limitation on how Windows CE stores file information.

Windows Mobile 2003 for Pocket PC, Windows Mobile 2003 for Smartphone, Windows CE Platform Note: Windows CE cannot store more
than 999 files in a directory when the files share the same short file
name (that is, the eight-character name, period (.), and 3-character
extension). The workaround is to ensure that the short file names are
different. For example, if the files are named Longfilename0001.txt
through Longfilename1000.txt, place the number at the beginning of the
file name instead of at the end.

FileMode Enumeration

Basically when you create a file on WinCE it generates a short file name based on whatever name you gave it. I haven't been able to determine the exact method for generating the short file names on WinCE but it likely involves truncating the name and appending some kind of a counter or a hash to generate a name. The problem is that the it can only generate 999 short names from similar long names. The more variety you have at the start of the file name or the extension the less likely you are to run out of short names.

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