Hello folks,
My upper filter for disk drives does IRP_MN_QUERY_CAPABILITIES during AddDevice, to know whether the disk is removable or not. This works most of the time, but sometimes when I plug some USB pen drive, the “removable” flag in DEVICE_CAPABILITIES is not set.
At first I thought it could be my mistake, but devmgmt doesn’t show the CM_DEVCAP_REMOVABLE either. It doesn’t happen all the time though.
I think it’s safe to query capabilities during AddDevice, isn’t it? If yes, any ideas about what could be the problem?
Thanks guys.