Please Register or Login to post a reply 2 Replies A Anandakumar Gopalsamy 5 years 6 months ago Hi, Did you try using Microsoft Wireless Device Power Management functions? Log in or register to post comments J Juan-Antonio Martinez 5 years 6 months ago 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); } Log in or register to post comments
2 Replies
Hi, Did you try using Microsoft Wireless Device Power Management functions?
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); }