Disabling airplane mode termination flip [part 2]

in #programming8 years ago

continue.. An obvious way to disable this is to block HDI data structures that disable
the networking, originating from the UI. Even better way, to allow toggling
from custom code on your kiosk or infopanel, simply call rmapi.dll
when the networking is needed. Laptops don't have any idea of the real state.

Let's sketch some code for disabling the airplane mode.

#ifndef __MAIN_H__
#define __MAIN_H__

#include <windows.h>

// Need this to access mapi
#define SUCCESS_SUCCESS         0
#define MAPI_E_USER_ABORT       1
#define MAPI_E_LOGIN_FAILURE    3

typedef unsigned long FLAGS;
typedef unsigned long LHANDLE;
typedef unsigned long FAR *LPLHANDLE, FAR *LPULONG;

Let's disassemble the dll to see the actual api.

Sort:  

I upvoted You

Coin Marketplace

STEEM 0.20
TRX 0.13
JST 0.030
BTC 64814.42
ETH 3450.94
USDT 1.00
SBD 2.52