Giter Site home page Giter Site logo

Comments (1)

maphew avatar maphew commented on July 18, 2024

During driver install in the wizard I chose 'Sensor' instead of the default 'Show All Devices'.
As a result the registry key is HKLMSYSTEM\CurrentControlSet\Enum\ROOT\SENSOR\FakeGPS.

image

ChatGPT has this to say about how to specify the registry location in the .inf file. I might get around to testing it later; no promises. ;-)

...
In a Windows legacy device driver .inf file, the property that sets the registry key location is typically defined within the [AddReg] section. This section is used to specify additions or modifications to the system registry. Entries in the [AddReg] section can define new registry keys, set registry values, or modify existing ones.

Here's how it works:

  1. Registry Section Name: Within the [AddReg] section of the .inf file, you specify one or more sub-section names that contain the registry settings you want to apply.

  2. Sub-section Details: Each sub-section specifies:

    • The root key (such as HKR for HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum<device-instance-id>).
    • The subkey path relative to the root key.
    • The name of the value to be set.
    • The type of the value (e.g., REG_SZ for a string, REG_DWORD for a 32-bit number).
    • The data or value to be set.
  3. Example:

    [AddReg]
    ; Sub-section name
    0x00000002,"SubKeyName","ValueName",0x00010001,1
    • 0x00000002 specifies the root key (HKR in this case).
    • "SubKeyName" is the path to the subkey under the root.
    • "ValueName" is the name of the registry value.
    • 0x00010001 specifies the type of the value (REG_DWORD).
    • 1 is the data to be set for the registry value.

Using the [AddReg] section in this way allows the .inf file to specify exactly where in the registry the key should be set or modified, providing a robust method for configuring device-specific settings upon driver installation.

from fakegps.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.