Comments (1)
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
.
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:
-
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. -
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.
- The root key (such as
-
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)
- "Input string was not in a correct format" error HOT 1
- Doesn't work on x64 device. HOT 2
- Altitude? NMEA? HOT 1
- doesn't work on x64 system HOT 1
- can't get installed on Windows 64 bit system HOT 23
- Error : Object reference not set to an instance of an object. HOT 4
- Older Windows HOT 1
- Improve documentation HOT 3
- Objektverweis wurde nicht auf eine Objektinstanz festgelegt HOT 1
- Object reference not set to an instance of an object. HOT 4
- Object reference error when unknown devices in registry
- Error while selecting the FakeGPS.inf HOT 3
- Installed fine, but doesn't seem to do anything HOT 3
- False Location returnes
- After assign new coordinates successfully return NaN HOT 4
- Trying to set double type of coords but it is incorrect input HOT 1
- NOT MAINTAINED / MAINTAINER WANTED
- ZOMG, we got this error: HOT 1
- Sets the cords but while returing it shows my original cords or nan HOT 5
- Trouble during instalation HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fakegps.