Jump to content

BANKINFO: Difference between revisions

From EDM2
Ak120 (talk | contribs)
m Ak120 moved page OS2 API:DataType:BANKINFO to BANKINFO
Ak120 (talk | contribs)
mNo edit summary
 
Line 1: Line 1:
== BANKINFO ==
Bank information data structure.
Bank information data structure.


Line 12: Line 11:


=== Fields ===
=== Fields ===
;ulBankLength
;ulBankLength:Length of the bank.
: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.
: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
;usBank:Current bank.
: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.
: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
;usVideoModeType:Current video mode type.
:Current video mode type.
:Defines the adapter video mode type to the device driver, and has one of the following values:
:Defines the adapter video mode type to the device driver, and has one of the following values:
::0 - Text Mode
::0 - Text Mode
Line 25: Line 21:
::2 - Linear Mode
::2 - Linear Mode
:This field is required.  
:This field is required.  
;usReadWriteMode
;usReadWriteMode:Read/Write bank mode.
:Read/Write bank mode.
:Specifies what bank type is to be set/returned, and has one of the following values:  
:Specifies what bank type is to be set/returned, and has one of the following values:  
::0 - Read
::0 - Read

Latest revision as of 13:45, 24 May 2017

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.