Turn on/off a WiFi compact flash adapter.
- From: "BLUE" <blue>
- Date: Fri, 11 May 2007 13:31:18 +0200
I'm doing in C sharp a small library to turn on/off a WiFi compact flash
adapter on a Psion Workabout Pro C with Windows CE 4.2
To turn off I've been told I have to:
- Open the NDIS power device "NPW1:"
- Build up an NDISPWR_SAVEPOWERSTATE structure with the right adapter name
in it, along with the target state of D4 for disabled, and call
DeviceIoControl passing IOCTL_NPW_SAVE_POWER_STATE. Close the "NPW1:"
driver handle
- If NDIS supports power management, send it a SetDevicePower call with the
D4 state
- Send an IOCTL_NDIS_UNBIND_ADAPTER to the target adapter
- Send an IOCTL_NDIS_GET_ADAPTER_BINDINGS call to the adapter (you can tell
if it's bound by checking the returned string)
1. Before doing that Comm\NdisPower\<AdapterName> registry value must be set
or not to 0x00000004?
2. How to check if NDIS supports power management?
3. I've done SetDevicePower(adapterName, POWER_NAME,
CEDEVICE_POWER_STATE.D4) but what value does adapterName have?
"NPW1:", "NDS0:", "NDS1:" or what?
4. In the IOCTL_NDIS_GET_ADAPTER_BINDINGS call to the adapter I must specify
lpOutBuffer and nOutBufferSize, but what value has nOutBufferSize since I do
not know how big is the retrieved list of protocol driver names?
5. To turn on wich are the steps?
The same changing D4 to D0 and UNBIND to BIND or what?
Thanks,
Luigi.
.
- Follow-Ups:
- Re: Turn on/off a WiFi compact flash adapter.
- From: <ctacke/>
- Re: Turn on/off a WiFi compact flash adapter.
- Prev by Date: Re: Fast Start-up
- Next by Date: Re: Fast Start-up
- Previous by thread: Re: Com port monitoring
- Next by thread: Re: Turn on/off a WiFi compact flash adapter.
- Index(es):
Relevant Pages
|