none
CM_DEVCAP_SILENTINSTALL

    Question

  • Hi there!
    I´m developing a USB HID device, and I would like to know more infos about CM_DEVCAP_SILENTINSTALL flag. I read all the USB documentation and I did not find any information regarding this flag. Does anybody know where in the device descriptor I change this flag?

    Thank you so much!

    Lucas M. Bracher
    Friday, December 15, 2006 11:27 PM

Answers

  • The SetupDiGetDeviceRegistryProperty function retrieves a specified Plug and Play device property.- One of it parameter is property(3rd parameter) of SPDRP_CAPABILITIES (The function retrieves a bitwise OR of the following CM_DEVCAP_Xxx flags in a DWORD. The device capabilities that are represented by these flags correspond to the device capabilities that are represented by the members of the DEVICE_CAPABILITIES structure)
     
    The CM_DEVCAP_Xxx constants are defined in cfgmgr32.h. Also check Declared in setupapi.h

    Furthermore

    A DEVICE_CAPABILITIES structure describes PnP and power capabilities of a device. This structure is returned in response to an IRP_MN_QUERY_CAPABILITIES IRP.

    and CM_DEVCAP_SILENTINSTALL correspond to --

    SilentInstall
    Specifies whether Device Manager should suppress all installation dialog boxes; except required dialog boxes such as "no compatible drivers found."

    Check these 2 links : http://msdn2.microsoft.com/en-us/library/ms792967.aspx 

    http://msdn2.microsoft.com/en-us/library/aa491648.aspx 

     

    Tuesday, December 19, 2006 2:01 PM