UMDF1.11 driver Inf registry Init - access in driver RRS feed

  • Question

  • Hi all,

    I need to initialize certain Parameters during UMDF1.111 driver Installation and 
    the Parameters need to be updated during subsequent driver load/unload/run 
    So I plan to use the INF file AddProperty to add a entry in the registry.

    I need to Initialize Parameter1 with 5 (whcih is of type UINT32)

    I tried to use the IWDFPropertyStoreFactory::RetrieveDevicePropertyStore to get 
    the store of type  IWDFNamedPropertyStore2 and use GetNamedValue( Parameter1,,) 
    to fetch the value initialised. However, this is no working, it returns error 
    E_HANDLE Invalid Handle

    Ultimate goal: is to access a initialize a variable during installation of 
    UMDF1.11 driver and to access it from the driver. Please suggest if there's any 
    better approach.

    Thanks & Regards,
    Shiva Prasad TS
    • Edited by ShivaP Friday, January 3, 2014 10:21 PM
    Friday, January 3, 2014 10:19 PM

All replies