Can someone tell me if it is possible to programically enable and disable a
connection adaptor, say a NIC. I have a app that I want to send data to
another computer periodically and I don't want the user to have to remember
to turn on the wireless on and off. Is there any way to do this?
Regards,
James
The procedure to disable is:
1. Open the NDIS power driver. Send it an I/O control:
IOCTL_NPW_SAVE_POWER_STATE, telling it to switch to power state for the
named adapter to D4.
2. Call SetDevicePower() to set the device power state to D4, if the adapter
supports power management.
3. Open NDIS. Send it an I/O control: IOCTL_NDIS_UNBIND_ADAPTER with the
adapter name to unbind the adapter.
Paul T.
"James Williams" <ja...@williams-eng.com> wrote in message
news:c96alk$9auq$1...@news3.infoave.net...
How do I open the NDIS power driver? Is there any documentation on this? I
have just the standard SDK for eMbedded VC 4.0, and I have not found any
references to the NDIS or SetDevicePower() functions.
Is there an example available?
Regards,
James
"Paul G. Tobey [eMVP]" <ptobey_no_spam@instrument_no_spam.com> wrote in
message news:uG9uQANR...@TK2MSFTNGP10.phx.gbl...
The power device's name is NPW1:
Paul T.
"James Williams" <ja...@williams-eng.com> wrote in message
news:c98lt4$afom$1...@news3.infoave.net...