Jump to content

BANKINFO: Difference between revisions

From EDM2
Anakor (talk | contribs)
new
 
Anakor (talk | contribs)
Format
Line 5: Line 5:
=== Type ===
=== Type ===


typedef struct _BANKINFO {
  [[OS2 API:DataType:ULONG|ULONG]]  ulBankLength;
  [[OS2 API:DataType:ULONG|ULONG]]  ulBankLength;
  [[OS2 API:DataType:USHORT|USHORT]] usBank;
  [[OS2 API:DataType:USHORT|USHORT]] usBank;
  [[OS2 API:DataType:USHORT|USHORT]] usVideoModeType;
  [[OS2 API:DataType:USHORT|USHORT]] usVideoModeType;
  [[OS2 API:DataType:USHORT|USHORT]] usReadWriteMode;
  [[OS2 API:DataType:USHORT|USHORT]] usReadWriteMode;
} BANKINFO;
 
==== C Declaration Method ====
 
typedef struct


=== Fields ===
=== Fields ===

Revision as of 00:58, 26 May 2005

BANKINFO

Bank information data structure.

Type

ULONG  ulBankLength;
USHORT usBank;
USHORT usVideoModeType;
USHORT usReadWriteMode;

C Declaration Method

typedef struct

Fields

ulBankLength    Length of the bank.
                Represents the combined length of all parameter packet fields. 
                This is a required field for all calls, including those made by
                way of the 32-bit DosDevIOCtl, with a minimum packet length of  
                10 bytes. 
usBank          Current bank.
                The current bank value to be set/returned. The bank size is
                64KB regardless of the value specified for the video mode type
                field. 
usVideoModeType Current video mode type. 
                Defines the adapter video mode type to the device driver, and 
                has one of the following values: 
                0              Text Mode 
                1              Planar Mode 
                2              Linear Mode 
                This field is required. 
 
usReadWriteMode Read/Write bank mode.
                Specifies what bank type is to be set/returned, and has one of
                the following values: 
                0              Read 
                1              Write 
                This field is required.