Re: Dynamically loading drivers for debug



While you wait, you could write you own tool. ToolHelpAPI gives you apis
for enumerating the loaded drivers, and ActivateDeviceEx() can load your
driver.

Other than the wiki page, I don't see devmgrtool as being anything but a
Microsoft internal tool.

--
Bruce Eitman (eMVP)
Senior Engineer
beitman AT applieddata DOT net

Applied Data Systems
www.applieddata.net
An ISO 9001:2000 Registered Company
Microsoft WEP Gold-level Member

"Atlantex" <Atlantex@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:2F9AF050-5D39-41CD-963D-A529484A337C@xxxxxxxxxxxxxxxx
Bruce,

Thanks for the feedback. This method seems like it would work, but it
sounds like it would require rebooting the device to unload the driver.
In
some debugging scenarios, because of the nature of the device, I may not
have
physical access to the device. So the devmgrtool seems like a handy thing
to
have, if I could only find it.

Thanks again,

-JB-

"Bruce Eitman [eMVP]" wrote:

You can also use KITL and the CE Shell to debug your driver. When doing
so,
you can exclude the driver from the OS. When the dll is required, it
will
be found in the \Release folder which maps back to your PC and the
_FLATRELEASEDIR.

--
Bruce Eitman (eMVP)
Senior Engineer
beitman AT applieddata DOT net

Applied Data Systems
www.applieddata.net
An ISO 9001:2000 Registered Company
Microsoft WEP Gold-level Member

"Atlantex" <Atlantex@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:3CB783D4-AE0B-4407-BC11-38E5DA7BCFAE@xxxxxxxxxxxxxxxx
I'm starting work on developing some user-mode device drivers, as well
as
a
service. I'd like to avoid having to download the whole 25 meg. image
every
time we change one line of code in the driver. Ideally, we'd like to
be
able
to have our base CE image installed in flash on the device, boot the
device
up, fire up Visual Studio with a non-PB project, and then deploy and
debug
our test app and driver & service DLL's.

I've seen some posts that refer to loading drivers and services on the
fly
with ActivateDevceEx and ActivateServiceEx. Is this the right way to
go?
Or
is there a better/easier way?

Any help that points us in the right direction would be greatly
appreciated.

Thanks,

-John-





.



Relevant Pages

  • Re: Mainstone II BSP PC Card Driver
    ... The reason I was looking into that was the Order registry ... ActivateDeviceEx returning NULL). ... Dummy is a driver I added just to be sure the process does indeed ... DeviceFolder::LoadDevice!Loading driver from device key ...
    (microsoft.public.windowsce.embedded)
  • Re: Device Driver for WatchDog using WIN CE 4.2
    ... Why are you "unable to use activatedeviceEx"? ... Does your driver's init function ... Do you have entries in the registry for the driver? ... beitman AT applieddata DOT net ...
    (microsoft.public.windowsce.embedded)
  • Re: What is the driver API call to register a device
    ... What I thought was that ActivateDeviceEx creates the Active key then calls ... ActivateDevice loads the driver into the Device Manager ... ActivateDeviceEx to work as expected (i.e. to load the driver and add the ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Sd card driver in WinCE
    ... beitman AT applieddata DOT net ... Microsoft WEP Gold-level Member ... i am developing a SD card driver in WinCE 5.0 for ARM926EJS processor. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Missing PCMCIA card insertion event (WinCE5)
    ... PCMCIA Driver is activated through ActivateDeviceEx by PCMCIA. ... the Activation Key is passed in by ActivateDeviceEx into XXX_Init ...
    (microsoft.public.windowsce.platbuilder)