[SHELL32][CMD][SHLWAPI] Use the openas verb when invoking unknown file types (#7981)

CORE-20184
This commit is contained in:
Whindmar Saksit 2025-05-30 18:46:24 +02:00 committed by GitHub
parent 6dd8e04438
commit d663eb4466
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 249 additions and 170 deletions

View file

@ -5,8 +5,8 @@ Signature = "$Windows NT$"
HKLM,"SOFTWARE\Classes",,0x00000010
; Default key
HKCR,"*","",0x00000000,""
HKCR,"SystemFileAssociations","",0x00000000,""
HKCR,"*","AlwaysShowExt",0x00000000,""
HKCR,"SystemFileAssociations",,0x00000010
; Open With List
HKCR,"*\OpenWithList\excel.exe","",0x00000000,""
@ -16,6 +16,12 @@ HKCR,"*\OpenWithList\notepad.exe","",0x00000000,""
HKCR,"*\OpenWithList\winword.exe","",0x00000000,""
HKCR,"*\OpenWithList\wordpad.exe","",0x00000000,""
; Unknown
HKCR,"Unknown","AlwaysShowExt"
HKCR,"Unknown","QueryClassStore"
HKCR,"Unknown\shell","",,"openas"
HKCR,"Unknown\shell\openas\command","",0x00020000,"%SystemRoot%\system32\rundll32.exe %SystemRoot%\system32\shell32.dll,OpenAs_RunDLL %1"
; Folders
HKCR,"Folder","",0x00000000,"Folder"
;HKCR,"Folder\DefaultIcon","",0x00000000,"%SystemRoot%\system32\shell32.dll,-4"