>> So my question is, where exactly in the registry does ShellExecute look
Quote:
Quote:
>> for the default verb and its handler?
>
> When you right-click a .avi file it first looks at the default key at
>
> HKEY_CLASSES_ROOT\.avi
>
> to determine where to subsequently jump to ie
>
> HKEY_CLASSES_ROOT\{value of default key}\shell
>
>
> In your case you would appear to have associated .avi files with VLC Media
> Player, so you probably have a VLC entry there. Explore what values you
> have under that key, and it will perhaps become apparent what's happening. There's no mention of VLC in there. Where does the system look next, if it
finds LegacyDisable in the first location?
And here are the contents of the registry branch, edited for brevity:
[HKEY_CLASSES_ROOT\AVIFile\shell]
@="Play"
[HKEY_CLASSES_ROOT\AVIFile\shell\open]
"LegacyDisable"=""
[HKEY_CLASSES_ROOT\AVIFile\shell\open\command]
@="%ProgramFiles%\Windows Media Player\wmplayer.exe" /prefetch:8 /Open "%L"
[HKEY_CLASSES_ROOT\AVIFile\shell\open\DropTarget]
"CLSID"="{CE3FB1D1-02AE-4a5f-A6E9-D9F1B4073E6C}"
[HKEY_CLASSES_ROOT\AVIFile\shell\play]
@="&Play"
"MUIVerb"=@%SystemRoot%\system32\unregmp2.exe,-9991
"LegacyDisable"=""
[HKEY_CLASSES_ROOT\AVIFile\shell\play\command]
@="%ProgramFiles%\Windows Media Player\wmplayer.exe" /prefetch:8 /Play "%L"
[HKEY_CLASSES_ROOT\AVIFile\shell\play\DropTarget]
"CLSID"="{CE3FB1D1-02AE-4a5f-A6E9-D9F1B4073E6C}"
I might resort to just searching the registry for all mentions of .avi,
avifile and VLC, but, if nothing else, I'd like to help the next person
looking for the solution to this. :-)