mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 00:32:57 +00:00
[STDOBJECT] Show the hotplug icon when a USB-Stick is inserted
- Enable the hotplug service by default - Start a timer on WM_DEVICECHANGE:DBT_DEVNODES_CHANGED to trigger the removable device detection.
This commit is contained in:
parent
93e72ed3d6
commit
fc999e18af
3 changed files with 38 additions and 14 deletions
|
@ -27,8 +27,8 @@ VOID CSysTray::GetServicesEnabled()
|
|||
HKEY hKey;
|
||||
DWORD dwSize;
|
||||
|
||||
/* Enable power and volume by default */
|
||||
this->dwServicesEnabled = POWER_SERVICE_FLAG | VOLUME_SERVICE_FLAG;
|
||||
/* Enable power, volume and hotplug by default */
|
||||
this->dwServicesEnabled = POWER_SERVICE_FLAG | VOLUME_SERVICE_FLAG | HOTPLUG_SERVICE_FLAG;
|
||||
|
||||
if (RegCreateKeyExW(HKEY_CURRENT_USER,
|
||||
L"Software\\Microsoft\\Windows\\CurrentVersion\\Applets\\SysTray",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue