[CMD][BOOTDATA] Populate 'Command Processor' registry data (#7114)

Improve compatibility.
JIRA issue: CORE-8002
- Fix the default values of AutoCompletionChar
  and PathCompletionChar in cmd.exe.
- Populate "SOFTWARE\Microsoft\Command
  Processor" registry key like Win2k3 does.
This commit is contained in:
Katayama Hirofumi MZ 2024-07-09 22:40:22 +09:00 committed by GitHub
parent d4433ee0c9
commit 22561d5046
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 12 additions and 3 deletions

View file

@ -106,10 +106,10 @@
* See https://technet.microsoft.com/en-us/library/cc978715.aspx
* and https://technet.microsoft.com/en-us/library/cc940805.aspx
* to know the differences between those two settings.
* Values 0x00, 0x0D (carriage return) and 0x20 (space) disable completion.
* Values 0x00, 0x0D (carriage return) and >= 0x20 (space) disable completion.
*/
TCHAR AutoCompletionChar = _T('\t'); // Default is 0x20
TCHAR PathCompletionChar = _T('\t'); // Default is 0x20
TCHAR AutoCompletionChar = 0x20; // Disabled by default
TCHAR PathCompletionChar = 0x20; // Disabled by default
SHORT maxx;

View file

@ -160,6 +160,11 @@ HKCU,"Control Panel\International\Geo",,0x00000012
HKCU,"Control Panel\Cursors",,,"ReactOS Default"
HKCU,"Control Panel\Cursors","Scheme Source",0x00010001,0x00000002
; CMD Settings
HKCU,"SOFTWARE\Microsoft\Command Processor","CompletionChar",0x00010001,0x09
HKCU,"SOFTWARE\Microsoft\Command Processor","DefaultColor",0x00010001,0
HKCU,"SOFTWARE\Microsoft\Command Processor","EnableExtensions",0x00010001,1
; PowerCfg
HKCU,"Control Panel\PowerCfg","CurrentPowerPolicy",2,"0"
HKCU,"Control Panel\PowerCfg\GlobalPowerPolicy","Policies",0x00030003,01,00,00,00,00,\

View file

@ -469,6 +469,10 @@ HKCU,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\BitBucket\Volume",,0x00
; CMD Settings
HKLM,"SOFTWARE\Microsoft\Command Processor","AutoRun",0x00020000,""
HKLM,"SOFTWARE\Microsoft\Command Processor","CompletionChar",0x00010001,0x40
HKLM,"SOFTWARE\Microsoft\Command Processor","DefaultColor",0x00010001,0
HKLM,"SOFTWARE\Microsoft\Command Processor","EnableExtensions",0x00010001,1
HKLM,"SOFTWARE\Microsoft\Command Processor","PathCompletionChar",0x00010001,0x40
; Uninstall Application list
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall",,0x00000012