0

Hi,

I have built a shell extension handler, using this as a template:

https://code.msdn.microsoft.com/windowsapps/CppShellExtContextMenuHandl-410a709a

In this instance, it registers with a ".ts" extension:

        hr = RegisterShellExtContextMenuHandler(L".ts",  
            CLSID_LNtoALL,
            L"CppShellExtContextMenuHandler.LNtoALL");

The project compiles fine, and the registration works also.

But on one PC, it fails to load (the context menu for .ts files is not updated), and on another (both using Win7 x64) it does.

I tried 2 others handlers, with '.mkv' and '.mp4' extensions (using of course different CLSIDs), and the results are random. Some work on a given PC, and some not.

I have no clue what prevents one handler to load on a PC, while it loads on another.

Any help would be greatly appreciated.

1
Contributor
1
Reply
10
Views
1 Year
Discussion Span
Last Post by BobFX
0

I found a workaraound: making a generic handler for all extensions, and having it test the extension for the selected files to chose what items to add to the context menu.

This handler always load.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.