From: qwert on
I try to get the DevicePropertyClassName with the above API in my add device
routine.
I get STATUS_OBJECT_NAME_NOT_FOUND randomly.
sometimes my API gets succeeded and sometimes it fails.

Can anybody tell me why this random behaviour.

But when I query DevicePropertyClassGuid immediately after the above failure
I get the correct GUID corresponding to "Volume" class.

any idea on the above issue would help me a lot.

Thanks in advance