How To: switch off slot power for Wireless LAN card

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to switch off slot power for Wireless LAN card from my application on
Symbol MC9000K with Windows Mobile 2003. I want to switch on power only when
I am communicating. I tried SetDevice Power() and DevicePowerNotify()
functions without success. These two functions execute successfully but
GetDevicePower() doesn't give updated status. Can somebody send me sample
code in C#. Thanking you in advance.
 
Hi,

I have a Symbol MC9000S and I use DevicePowerNotify.
I not pinvoked it. My code is ...

__declspec(dllexport) BOOL WINAPI PowerOn(void)
{
if (DevicePowerNotify(_T("WLP1:"), D0, POWER_NAME) != 0)
return FALSE;

return TRUE;
}

__declspec(dllexport) BOOL WINAPI PowerOff(void)
{
if (DevicePowerNotify(_T("WLP1:"), D4, POWER_NAME) != 0)
return FALSE;

return TRUE;
}

Regards

ACP
 
Back
Top