Re: About "ActivateDevice"

Tech-Archive recommends: Fix windows errors by optimizing your registry



Since I'm curious, you're saying your platform by default doesn't have the
drivers loaded? Why not simply adjust the registry for the capbilities of
the driver (setting the driver's Flags entry to not start for example)
rather than doing it at the app level?

Again, I'm not sure I agree with the design, but then it's not my platform.

For P/Invoke there are a couple good introductory articles in MSDN - that's
the best place to start.

For this specific case, here's the definition:
[DllImport("coredll.dll", SetLastError=true)]
public extern static IntPtr ActivateDevice(string lpszDevKey, int
dwClientInfo);

Chris Tacke
OpenNETCF Consulting
www.opennetcf.com


<jamesa@xxxxxxxxxxxx> wrote in message
news:1149147118.524443.63320@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi Chris,

To be honest, I am simply trying to simplify my platform deployment.
I have a 'standard' platform that includes all the drivers & registry
entries for all the possible hardware supported on my device, and I aim
to customise the capabilities of the device simply by starting the
required drivers...

Do you have any good examples of using P/Invoke? I've never needed to
play with the API from C# before...

Thanks,

James



.



Relevant Pages

  • Re: legacy platform drivers and hotplugging
    ... Userspace will not code around your very personal idea of hotplug. ... My patch fixes all these issues, and make platform behave like a nice ... You disabled uevents which breaks udev and HAL setups, ... The basic problem with such legacy drivers is that they ...
    (Linux-Kernel)
  • Re: organizing drivers and tools into the platform builder tree
    ... one of these directories, the platform builder crashes as ... Another interesting point are platform independant drivers, ... public tree or 3rdparty ... which is common for all BSPs are located in this directory. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: organizing drivers and tools into the platform builder tree
    ... Another interesting point are platform independant drivers, ... public tree or 3rdparty ... which is common for all BSPs are located in this directory. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: organizing drivers and tools into the platform builder tree
    ... will be fixed in the next version of Platform Builder. ... Another interesting point are platform independant drivers, ... public tree or 3rdparty ... which is common for all BSPs are located in this directory. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: legacy platform drivers and hotplugging
    ... specific complaints about platform bus hotplugging. ... The basic problem with such legacy drivers is that they ... Which means that for these legacy drivers, ... it breaks coldplug too, as well as hotplug. ...
    (Linux-Kernel)