开发者

Dokan filesystem always displays in Film Strip view

开发者 https://www.devze.com 2023-02-03 08:38 出处:网络
We have created a virtual filesystem driver using Dokan for Windows.For some reason, whenever the device is mounted on Windows XP, it defaults the windows explorer view to \"Film Strip\" mode.This is

We have created a virtual filesystem driver using Dokan for Windows. For some reason, whenever the device is mounted on Windows XP, it defaults the windows explorer view to "Film Strip" mode. This is annoying, as there aren't even any media files.

Current options pas开发者_开发问答sed to Dokan are as follows:

dokanOptions->Options |= DOKAN_OPTION_REMOVABLE;
dokanOptions->Options |= DOKAN_OPTION_KEEP_ALIVE;

Is there any way we can default/force the view for folders under a particular drive letter or device to not show this option?


I wrote a driver for an IBM mainframe file system. My driver added a desktop.ini to the list of files. That desktop.ini does not really exist on the mainframe medium. In my desktop.ini I added the following lines and that fixed the problem you mention.

[.ShellClassInfo]
IconResource=W:\my_icon.ico,0
[ViewState]
Mode =
Vid =
FolderType = Generic

Just say desktop.ini exists and report the size of the string. Then in the ReadFile function, memcpy that data to Buffer and set ReadLength to the number of bytes copied. You have to use \r\n at the end of each line.


No, there's no way to control visual representation of the disk contents. Creating a "network" disk type with proper shell support changes Explorer behavior slightly, but Dokan doesn't support such disk type (our Callback File System does).

0

精彩评论

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