Re: What is the driver API call to register a device

From: Steve Maillet \(eMVP\) (nospam1_at_EntelechyConsulting.com)
Date: 04/30/04


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


Relevant Pages

  • RE: Problem using RegisterDevice
    ... In general you should be using ActivateDeviceEx(); ... creates for them in the registry. ... one thing you could try is copying your DLL into local storage on ... which doesn't require that the "driver key" be ...
    (microsoft.public.windowsce.platbuilder)
  • Re: "No .rel file found for module "
    ... different BSP and trying to integrate a driver from freescale. ... assuming it has gotten far enough to attempt to load it. ... I thought maybe it was the registry data too, ... For my call to ActivateDeviceEx, I simply passed the dll name and then ...
    (microsoft.public.windowsce.app.development)
  • Re: ActivateDeviceEx versus RegisterDevice
    ... Yaroslav Goncharov schrieb: ... The last parameter of this function can be used to pass additional driver ... since RegisterDevice is superseded by ActivateDeviceEx, ... the registry information is already present somhwere in the device ...
    (microsoft.public.windowsce.embedded)
  • Re: ActivateDeviceEx versus RegisterDevice
    ... To use ActiveDeviceEx you need to have the driver registry key configured. ... since RegisterDevice is superseded by ActivateDeviceEx, ... api commands to enter the information or can I use the 3d. ...
    (microsoft.public.windowsce.embedded)
  • Re: ActivateDeviceEx versus RegisterDevice
    ... The 4th parameter is to pass driver specific data without using registry. ... The 2nd and 3rd parameters add values to the *device's* Active registry key. ... Yaroslav Goncharov schrieb: ... since RegisterDevice is superseded by ActivateDeviceEx, ...
    (microsoft.public.windowsce.embedded)