wm_devicechange

About this tag
The WM_DEVICECHANGE message is a Windows notification sent to applications when a hardware device is added or removed from the system. In the context of Windows programming, handling this message allows applications to respond to device insertion or ejection events, such as those for CD/DVD drives. A common use case involves managing the taskbar visibility: when a disc is inserted or ejected, the taskbar may become visible even if it was previously hidden via the Windows API. Developers can intercept WM_DEVICECHANGE to reapply taskbar hiding logic, though sporadic behavior may occur, suggesting that additional messages or timing considerations might be needed for reliable results.
  1. liz08

    Windows 10 Taskbar shows up when CD/DVD is inserted or ejected

    Hello, In our application we get the handle of the taskbar using Windows API and hide it using SW_HIDE. Yet when the CD / DVD is inserted / ejected the taskbar is visible. We tried to handle the WM_DEVICECHANGE windows message which is received when any device is inserted to the system and...
Back
Top