
------------------------------------------------------------------------------
4.6 Get VGA window information. <Main,Win>
------------------------------------------------------------------------------
[Name]
vwin_info
[Syntax]
#include <crt.h>
int vwin_info( unsigned int widx, struct vwinfo *buf ) ;
struct vwinfo {
unsigned int stat ; /* status */
unsigned int posl ; /* line position */
unsigned int posc ; /* column position */
unsigned int sizev ; /* vertical size */
unsigned int sizeh ; /* horizontal size */
} ;
[Arguments]
widx VGA window index. (=0,1)
buf Window iformation buffer.
[Return]
0 Successful.
Non-0 Error. (one of the following cases)
- Incorrect window index (widx).
[Description]
Gets the status information of the specified VGA window.
The position, size and status of the specified window are stored into
"buf".
The meanings of each bit of the status flag "buf.stat" are as follows.
bit0 VW_OPEN = 0 Not opened.
= 1 Opened.
bit1 VW_HIDDEN = 0 Visible.
= 1 Invisible.
(VW_HIDDEN is effective when VW_OPEN=1.)
bit2 - bit15 Undefined.