none
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 
    operations.
    So I plan to use the INF file AddProperty to add a entry in the registry.

    [AddProperty1]
    DeviceModel,,,,"Parameter1"
    {5A491D6D-5F70-49ED-A888-41036F0AAD56},2,7,,5
    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