Re: What is the driver API call to register a device
From: Steve Maillet \(eMVP\) (nospam1_at_EntelechyConsulting.com)
Date: 04/30/04
- Next message: David Jones: "Wireless with CE.NET.. Any ideas how to?"
- Previous message: yHuang: "question about using SD card as storage for hive-based registry!"
- In reply to: Dale Ziebarth: "Re: What is the driver API call to register a device"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 30 Apr 2004 00:04:26 -0400
ActivateDeviceEx() does not call ActivateDeivce(). In fact it works the
other way around ActivateDevice calls ActivateDeviceEx()!
You get ActivateDeviceEx to load the driver by doing the following:
1) put the following values into the registry under HKEY_LOCAL_MACHINE -
where doesn't really matter but it's usually under HKLM\Drivers
"Dll"
"Order"
"Prefix"
How you create the reg key isn't relevant. (put it in a REG file and build
it into the image or add it from code with the Registry APIs, add it using
remote registry editor, etc...)
2) Call ActivateDevice or ActivateDeviceEx with the registry key created in
1. ActivateDeviceEx will create the devices Active key and add some of it's
own values, including the "Key" value which contains the drivers key passed
to ActivateDeviceEx. ActivateDeviceEx then adds the values you specify in
the REGINI structure.
-- Steve Maillet (eMVP) EmbeddedFusion smaillet_AT_EmbeddedFusion_DOT_com
- Next message: David Jones: "Wireless with CE.NET.. Any ideas how to?"
- Previous message: yHuang: "question about using SD card as storage for hive-based registry!"
- In reply to: Dale Ziebarth: "Re: What is the driver API call to register a device"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|