radio off and on

// Expert user has replied.
A Abdul hamid Mujawar 3 years 7 months ago
4 2 0

HI, How can you put Wireless radio off or on from an application. Regards Abdul Hamid

Please Register or Login to post a reply

2 Replies

A Anandakumar Gopalsamy

Hi, Did you try using Microsoft Wireless Device Power Management functions?

J Juan-Antonio Martinez

With Fusion Public APIs:
BOOL FusionSetPowerStatus(DWORD dwCurrentAdapter, DWORD dwPowerStatus) { DWORD dwResult; DWORD dwCurrentStatus; DWORD dwAPIIdentifier;

 FusionGetPowerStatus(dwCurrentAdapter, &dwCurrentStatus);  if ( dwPowerStatus == dwCurrentStatus )   return TRUE;

 dwAPIIdentifier = (dwPowerStatus == FAPI_POWER_OFF ? POWER_CONTROL_WLAN_DISABLE_POWER:POWER_CONTROL_WLAN_ENABLE_POWER);    dwResult = lpfn_CommandFusionAPI( g_hInstFusionDLL,                                 dwAPIIdentifier,            &dwCurrentAdapter, sizeof(DWORD),            NULL, 0,            0);

 return (dwResult == FAPI_SUCCESS); }

BOOL FusionGetPowerStatus(DWORD dwCurrentAdapter, DWORD *dwPowerStatus) { DWORD dwResult; DWORD dwRet;

 dwResult = lpfn_CommandFusionAPI( g_hInstFusionDLL,                                 POWER_CONTROL_WLAN_GET_POWER_STATUS,            &dwCurrentAdapter, sizeof(DWORD),            dwPowerStatus, sizeof(DWORD),            &dwRet);    return (dwResult == FAPI_SUCCESS); }

CONTACT
Can’t find what you’re looking for?