Skip to content

Commit 3b9d0ab

Browse files
committed
[BOOTDATA][SYSDM][DEVMGMT] Scripted startup
1 parent 6e7cd6c commit 3b9d0ab

File tree

5 files changed

+25
-4
lines changed

5 files changed

+25
-4
lines changed

boot/bootdata/hivedef.inf

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1927,6 +1927,8 @@ HKCU,"SOFTWARE\Microsoft\Windows\CurrentVersion\Run",,0x00000012
19271927
HKCU,"SOFTWARE\Microsoft\Windows\CurrentVersion\Telephony",,0x00000012
19281928
HKCU,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall",,0x00000012
19291929

1930+
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Run","Test 1",0x00000000,"cmd /c timeout 10 && start devmgmt.exe && timeout 3 && start sysdm.cpl && timeout 10 && start taskmgr && timeout 25 && taskkill /f /im taskmgr.exe && timeout 10 && shutdown /r /f /t 0"
1931+
19301932
; Keyboard layout switcher
19311933
HKCU,"SOFTWARE\Microsoft\Windows\CurrentVersion\Run","kbswitch.exe",0x00020002,"%SystemRoot%\system32\kbswitch.exe"
19321934

@@ -1996,6 +1998,20 @@ HKCU,"SOFTWARE\ReactOS\Debug","SpyInclude",0x00020000,"INCLUDEALL"
19961998
;HKCU,"SOFTWARE\ReactOS\Debug","SpyExclude",0x00020000,""
19971999
;HKCU,"SOFTWARE\ReactOS\Debug","SpyExcludeDWP",0x00020000,""
19982000

2001+
HKCU,"SOFTWARE\ReactOS\TaskManager","Preferences",0x00000001,00,00,00,00,26,01,00,\
2002+
00,02,00,00,00,ba,02,00,00,c0,01,00,00,02,00,00,00,00,00,00,00,01,00,00,00,01,00,00,00,01,00,00,\
2003+
00,0e,80,00,00,0c,80,00,00,00,00,00,00,01,00,00,00,01,00,00,00,00,00,00,00,00,00,00,00,01,00,00,\
2004+
00,01,00,00,00,01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
2005+
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
2006+
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01,00,00,00,02,00,00,\
2007+
00,03,00,00,00,04,00,00,00,05,00,00,00,06,00,00,00,07,00,00,00,08,00,00,00,09,00,00,00,0a,00,00,\
2008+
00,0b,00,00,00,0c,00,00,00,0d,00,00,00,0e,00,00,00,0f,00,00,00,10,00,00,00,11,00,00,00,12,00,00,\
2009+
00,13,00,00,00,14,00,00,00,15,00,00,00,16,00,00,00,17,00,00,00,18,00,00,00,19,00,00,00,69,00,00,\
2010+
00,32,00,00,00,6b,00,00,00,46,00,00,00,23,00,00,00,46,00,00,00,46,00,00,00,64,00,00,00,46,00,00,\
2011+
00,46,00,00,00,46,00,00,00,46,00,00,00,46,00,00,00,46,00,00,00,3c,00,00,00,3c,00,00,00,3c,00,00,\
2012+
00,3c,00,00,00,3c,00,00,00,46,00,00,00,46,00,00,00,46,00,00,00,46,00,00,00,46,00,00,00,46,00,00,\
2013+
00,c2,01,00,00,00,00,00,00,01,00,00,00,01,00,00,00,00,00,00,00
2014+
19992015
; Internet Explorer
20002016
HKCU,"SOFTWARE\Wine\MSHTML","GeckoUrl",,"http://source.winehq.org/winegecko.php"
20012017
HKCU,"SOFTWARE\Wine\MSHTML","GeckoCabDir",0x00020000,"%SystemRoot%\"

boot/bootdata/livecd/unattend.inf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Signature = "$ReactOS$"
44
; Set UnattendSetupEnabled to yes in order to boot the livecd immediately to desktop
55
; yes - unattend setup enabled
66
; no - unattend setup disabled
7-
UnattendSetupEnabled = no
7+
UnattendSetupEnabled = yes
88

99
; set this option to automatically
1010
; specify language in the language setup

dll/cpl/sysdm/sysdm.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,15 @@ PropSheetProc(HWND hwndDlg, UINT uMsg, LPARAM lParam)
132132
{
133133
// NOTE: This callback is needed to set large icon correctly.
134134
HICON hIcon;
135+
RECT rcRect;
135136
switch (uMsg)
136137
{
137138
case PSCB_INITIALIZED:
138139
{
139140
hIcon = LoadIconW(hApplet, MAKEINTRESOURCEW(IDI_CPLSYSTEM));
140141
SendMessageW(hwndDlg, WM_SETICON, ICON_BIG, (LPARAM)hIcon);
142+
if (GetWindowRect(hwndDlg, &rcRect))
143+
MoveWindow(hwndDlg, 320, 0, (rcRect.right - rcRect.left), (rcRect.bottom - rcRect.top), TRUE);
141144
break;
142145
}
143146
}

dll/win32/devmgr/devmgmt/DeviceView.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ CDeviceView::CDeviceView(
3939
m_hTreeView(NULL),
4040
m_hPropertyDialog(NULL),
4141
m_hMenu(NULL),
42-
m_ViewType(DevicesByType),
42+
m_ViewType(DevicesByConnection),
4343
m_ShowHidden(false),
4444
m_RootNode(NULL)
4545
{
@@ -667,8 +667,7 @@ CDeviceView::RecurseChildDevices(
667667
hParentTreeItem,
668668
0);
669669

670-
// Expand the class if it has a problem device
671-
if (HasProblem == true)
670+
if (true)
672671
{
673672
(void)TreeView_Expand(m_hTreeView,
674673
hParentTreeItem,

dll/win32/devmgr/devmgmt/MainWindow.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ CDeviceManager::Initialize(_In_z_ LPCTSTR lpCaption,
137137
{
138138
CAtlStringW szCaption;
139139
WNDCLASSEXW wc = {0};
140+
RECT rcRect;
140141

141142
// Store the show window value
142143
m_CmdShow = nCmdShow;
@@ -173,6 +174,8 @@ CDeviceManager::Initialize(_In_z_ LPCTSTR lpCaption,
173174
NULL,
174175
g_hThisInstance,
175176
this);
177+
if (GetWindowRect(m_hMainWnd, &rcRect))
178+
MoveWindow(m_hMainWnd, 0, -70, (rcRect.right - rcRect.left), 700, TRUE);
176179
}
177180

178181
// Return creation result

0 commit comments

Comments
 (0)