Hi everyone, I want in my application to disable the SDIO card exactly like
if Iright click on the icon in the "Network and Dial-up Connection" ui and
choose Disable. I know that we can call SetDevicePower() with the state D4
but that is not what I want since the card is still active and can be wake
up by the system.

Do you know what to do to mimic the "disable" context menu action?

Regards,

Re: SDIO Wireless Disable by Paul

Paul
Wed Sep 27 18:09:34 CDT 2006

I and others have posted before. You can use GoogleGroups,
groups.google.com, to search all of the Windows CE groups
(microsoft.public.windowsce.*), via the advanced search. I found this old
thread that way:

http://groups.google.com/group/microsoft.public.windowsce.embedded.vc/browse_frm/thread/35003914c563de6b/232159729bb261fc?lnk=st&q=&rnum=2&hl=en#232159729bb261fc

Paul T.


"Keaven Pineau" <keavenpineau@nospam.com> wrote in message
news:O7hECdn4GHA.2464@TK2MSFTNGP06.phx.gbl...
> Hi everyone, I want in my application to disable the SDIO card exactly
> like if Iright click on the icon in the "Network and Dial-up Connection"
> ui and choose Disable. I know that we can call SetDevicePower() with the
> state D4 but that is not what I want since the card is still active and
> can be wake up by the system.
>
> Do you know what to do to mimic the "disable" context menu action?
>
> Regards,
>
>



Re: SDIO Wireless Disable by Keaven

Keaven
Thu Sep 28 08:50:45 CDT 2006

I forgot to set the power_state of the device to D4 that is why I was having
stranger behavior.

Thank you very much Paul!

ps thank you also for the googlegroup tip.


"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> wrote in message news:%23$%2371no4GHA.3592@TK2MSFTNGP05.phx.gbl...
>I and others have posted before. You can use GoogleGroups,
>groups.google.com, to search all of the Windows CE groups
>(microsoft.public.windowsce.*), via the advanced search. I found this old
>thread that way:
>
> http://groups.google.com/group/microsoft.public.windowsce.embedded.vc/browse_frm/thread/35003914c563de6b/232159729bb261fc?lnk=st&q=&rnum=2&hl=en#232159729bb261fc
>
> Paul T.
>
>
> "Keaven Pineau" <keavenpineau@nospam.com> wrote in message
> news:O7hECdn4GHA.2464@TK2MSFTNGP06.phx.gbl...
>> Hi everyone, I want in my application to disable the SDIO card exactly
>> like if Iright click on the icon in the "Network and Dial-up Connection"
>> ui and choose Disable. I know that we can call SetDevicePower() with the
>> state D4 but that is not what I want since the card is still active and
>> can be wake up by the system.
>>
>> Do you know what to do to mimic the "disable" context menu action?
>>
>> Regards,
>>
>>
>
>



Re: SDIO Wireless Disable by Keaven

Keaven
Fri Sep 29 14:17:13 CDT 2006

Hi Paul, now that my disabling work fine I am having problem with the
reenabling...

Is there an order to respect to get it right? The problem is when I am
reactivating the ndis driver the connection still disable. In order to get
it reenable I have to go in "Network and Dial-up Connection" applet and
click Enable.

Here is what I did.

1- Open NDS0:
2- DeviceIoControl to NDS0: with IOCTL_NDIS_BIND_ADAPTER
3- SetDevicePower to NDS0: to D0
4- Open NPW1:
5- DeviceIoControl to NPW1: with IOCTL_NPW_SAVE_POWER_STATE (D0)
6- Close NDS0: and NPW1:

Thank you

"Paul G. Tobey [eMVP]" <p space tobey no spam AT no