806 questions
1 vote
0 answers
110 views
Powershell Com Object Issues
I have a simple script to make file transfers between a local directory and an MTP device. For the MTP device, I created a ComObject and traversed to the desired directory. Then, I use the CopyHere ...
0 votes
0 answers
68 views
Windows Shell thumbnail extension: how to set ThumbnailCutoff
I implemented an IThumbnailProvider to create custom thumbnails in the Windows File Explorer for my application. That works as expected. Windows switches from custom thumbnails to the default file ...
3 votes
1 answer
87 views
How do I add a new item to the context menu for .url file types?
When adding a custom option to the context menu for different types of icons, this code works fine: with reg.CreateKey(reg.HKEY_CURRENT_USER, base_path) as main_key: reg.SetValueEx(main_key, '...
0 votes
0 answers
30 views
ClickOnce App Doesn't Launch from "Send To" Shortcut
I have a Winforms application published using ClickOnce. I want users to be able to right-click a file in Windows Explorer and select "Send To → Crawler", which should then launch my ...
1 vote
1 answer
165 views
How to make IFileOperation display the modern progress dialog?
When I call SHFileOperation, I get the old style UI. For example the copy dialog doesn't have the speed chart, the replace files confirmation dialog shows one file at a time instead of listing them ...
-2 votes
1 answer
209 views
How to open browse for folder dialog using SHBrowseForFolder function with a root folder and second, selected folder below?
How to open browse for folder dialog using SHBrowseForFolder function in Visual Basic for Applications with a root folder and second folder below selected with the mouse in the folder tree, even deep, ...
2 votes
0 answers
127 views
File Explorer leaks instances of shell namespace extension class when Explorer window is closed
If you navigate Explorer into a shell namespace extension, and then navigate away from the namespace extension into some other folder branch, then Explorer will release all instances of the namespace ...
0 votes
0 answers
31 views
How to customize the file open behavior for a specific file type?
I am using windows cloud file API (https://learn.microsoft.com/en-us/windows/win32/cfapi/cloud-files-api-portal) to create some local placeholder files to represent the data from cloud. For most of ...
0 votes
1 answer
56 views
Retrieve custom status set on a StorageFile in cloud file api
I have set some custom properties on a file in cloud file workspace using StorageProviderItemProperties.SetASync(IStorageItem, IEnumerable). I am now trying to retrieve the values later using below ...
2 votes
1 answer
198 views
Context menu limits in Windows 10/11
I have a context menu under Windows 11 that implements the IExplorerCommand interface in C++. The menu contains 7 items, each with 3 submenus. In the "new" Windows 11 context menu, all menu ...
0 votes
0 answers
59 views
ShellExecute opens shortcut instead of folder when they have the same name
I found out that ShellExecute(..., L"open", ...) will choose to launch a shortcut instead of folder when the path is clearly a folder, when the folder and the shortcut has the same name ...
1 vote
1 answer
131 views
Error while installing context menu based on IExplorerCommand
I am trying to install a context menu handler written in C++ that implements IExplorerCommand. For installation, I use the instructions which are specified in this repository: https://github.com/...
0 votes
0 answers
185 views
How to register IExplorerCommand implementation in Windows?
I'm trying to register a context menu that implements the IExplorerCommand interface in C++. I used the example from Microsoft as a basis: https://github.com/microsoft/AppModelSamples/blob/master/...
1 vote
1 answer
123 views
Correct way to implement IContextMenu
I'm trying to implement IContextMenu, but I'm having some difficulties. In the QueryContextMenu method I add the menu like this: HRESULT QueryContextMenu( HMENU hmenu, UINT indexMenu, ...
1 vote
1 answer
117 views
Get file path in shell extension
I have a shell extension that implements a context menu for text files. In the shell extension, I need to determine the path of the file for which this context menu was called. For this, I decided to ...