Windows shell extension file permissions

106 views Asked by At

I'm currently developing a custom preview handler for Windows. My setup involves a registered .dll (coded in C++) which calls a .exe (coded in C#) to render the preview. However, I'm encountering an issue where I'm unable to write any files (such as log files) to the filesystem from either the .dll or the .exe.

I've attempted using Windows.Storage instead of System.IO, but encountered a similar error indicating a lack of access rights. The only workaround I've found is running the program as administrator, which allows file writing, but this triggers a popup every time a file is previewed.

Any insights or suggestions on how to resolve this would be greatly appreciated!

0

There are 0 answers