2015年9月11日 星期五

Disable USB driver dialog

在 WINCE 6.0 2010 March 的 Update 中 ( usbddrv.cpp )
增加了關掉提示 載入driver 的功能


只要在 registry 設定


[HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients]

"DoNotPromptUser"=dword:0
The default value is 0. Set it to 1 to disable the dialogs.

就可以了


還有 2010 March Update 解決了許多的 USB Issue
請看 http://support.microsoft.com/?scid=kb;en-us;980435&x=-486&y=-101


Note: 在WINCE 5.0 要自己修改 usbddrv.cpp
此 usbddrv.cpp 屬於 usbd
呼叫 dialog 的函式為 GetClientDriverName()

HcdDeviceAttached() -> LoadDeviceDrivers() failed -> GetClientDriverName() -> InstallClientDriver()