Re:Why Does Windows Think My Keyboard Is a Toaster? (2014)
by protomyth on Saturday April 02, 2016 @03:15PM
(#11412877)
So, the joke is the software developer for the driver copied the example driver code a little too literally? I guess seeing a toaster icon is as good a way as any of having a flag to tell you to watch out with this driver.
[ Parent
| on HN ]
Re:Why Does Windows Think My Keyboard Is a Toaster? (2014)
by stevetrewick on Saturday April 02, 2016 @10:19PM
(#11414621)
Probably not the code, though it's true that everyone starts with the toaster sample, there's not enough functionality in it to make it an easy walk to a HID filter driver, which is what's probably installed for your average white box USB keyboard. Plus there's (IIRC, it's been a couple of years) a specific sample for that in the WDK. Most likely they did copy/paste the device metadata from that sample.
So, keyboard OEM's contract devs whip up a HID filter driver, but they c/p the sample metadata and forget to change the DeviceIcon entry. Now we could imagine their testing process involved little more than jacking it in and rattling the keys, but if they were developing or testing on anything previous to Win 7 (I think) then if they'd checked they'd have seen a generic icon based on device class.
But still, the code they wrote is running in the ring zero, so yeah, we'd prefer them to systematically carefull.