deactivatedevice

Last post 07-17-2008 21:09 by ctacke. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 07-08-2008 7:25

    deactivatedevice

     Hi,

    i try to deactivate a wifi card by using  Deactivatedevice() function but i receive a message :"No driver information found at provided path"

    i try with differet key but with no result.

    i think my key is :

    HKEY_LOCAL_MACHINE\Drivers\PCMCIA\SAMSUNG-SWL2460_802.11g_PC_Card-A103

    can you help me.

  • 07-09-2008 3:24 In reply to

    Re: deactivatedevice

     Any idea ? or example from the doc?

  • 07-09-2008 5:51 In reply to

    Re: deactivatedevice

     Now i can deactivate it with the argument : Drivers\PCMCIA\SAMSUNG-SWL2460_802.11g_PC_Card-A103 ( ie without HKEY_LOCAL_MACHINE.

     But Activatedevice do not work, i can't even activate it from the pda utility , it gives me the message:  "can not find a SEM wlan turn on a wlan and try again"

    I think this is a bug in the OPENNETCF ActivateDevice function .

    can any body help ?

    THX.

  • 07-09-2008 11:13 In reply to

    • ctacke
    • OpenNETCF Staff
    • Top 10 Contributor
    • Joined on 07-27-2007
    • Indiana
    • Posts 1,939

    Re: deactivatedevice

    I'm certain that it is not a bug in the SDF's implementation, since all it's doing is passing your parameters to the ActivateDevice API and nothing more.  It's not doing any logic or filtering at all.  What that means is that your call is incorrect.  I've never tried to activate or deactivate a specific PCMCIA driver, so I'm not sure what the syntax it's expecting would be.

  • 07-10-2008 5:58 In reply to

    Re: deactivatedevice

     THX.

    i think ActivateDevice and DeactivateDevice have the same argument (the registry key for the device to activate/deactivate) but it's working only for the ActivateDevice call.

    do you have an example of calling ActivateDevice methode for any other device even if it's not a PCMCIA.

  • 07-17-2008 21:09 In reply to

    • ctacke
    • OpenNETCF Staff
    • Top 10 Contributor
    • Joined on 07-27-2007
    • Indiana
    • Posts 1,939

    Re: deactivatedevice

     As a follow-up, the docs for DeactivateDevice clearly state that it requires the handle returned by ActivateDevice.  Looking at the docs would have led to that quite quickly.  If you look at the SDF source, what it does it walks through the active driver list in he registry in an attempt to find the handle for that loaded device (which, incidentally, I suspect should fail spectacularly in CE 6.0 and later).  Walk through the source and see what's happening.  I know it works for a standard stream interface driver, as that's what I tested it with (and specifically wrote it for). 

     

Page 1 of 1 (6 items)