The BANKDATA data structure contains the current mode ID and the bank number.
typedef struct _BANKDATA {
MODEID miBank; /* ID of the current mode. */
ULONG ulBank; /* Current bank number. */
} BANKDATA;
typedef BANKDATA *FAR *PBANKDATA;