Last change
on this file since 121 was 119, checked in by イグトランス (egtra), 17 years ago |
Unicode (#50) 前準備
Byte→Char (#51) 型名は殆ど完了、ただし中身までは手を付けていないものが多い
|
File size:
1.4 KB
|
Rev | Line | |
---|
[1] | 1 | 'api_console.sbp
|
---|
| 2 |
|
---|
| 3 | #ifndef _INC_CONSOLE
|
---|
| 4 | #define _INC_CONSOLE
|
---|
| 5 |
|
---|
| 6 | 'console text color
|
---|
| 7 | Const FOREGROUND_BLUE = &H0001
|
---|
| 8 | Const FOREGROUND_GREEN = &H0002
|
---|
| 9 | Const FOREGROUND_RED = &H0004
|
---|
| 10 | Const FOREGROUND_INTENSITY = &H0008
|
---|
| 11 | Const BACKGROUND_BLUE = &H0010
|
---|
| 12 | Const BACKGROUND_GREEN = &H0020
|
---|
| 13 | Const BACKGROUND_RED = &H0040
|
---|
| 14 | Const BACKGROUND_INTENSITY = &H0080
|
---|
| 15 |
|
---|
[119] | 16 | Type COORD
|
---|
| 17 | X As Integer
|
---|
| 18 | Y As Integer
|
---|
| 19 | End Type
|
---|
[1] | 20 |
|
---|
| 21 |
|
---|
[119] | 22 | Declare Function AllocConsole Lib "kernel32" () As BOOL
|
---|
| 23 | Declare Function FreeConsole Lib "kernel32" () As BOOL
|
---|
[1] | 24 |
|
---|
[119] | 25 | Declare Function SetConsoleCursorPosition Lib "kernel32" (hConsoleOutput As HANDLE, dwCursorPosition As DWord) As BOOL
|
---|
| 26 |
|
---|
[1] | 27 | Declare Function ReadConsole Lib "kernel32" Alias "ReadConsoleA" (hConsoleInput As HANDLE, pBuffer As VoidPtr, nNumberOfCharsToRead As DWord, ByRef NumberOfCharsRead As DWord, pReserved As VoidPtr) As BOOL
|
---|
| 28 | Declare Function WriteConsole Lib "kernel32" Alias "WriteConsoleA" (hConsoleOutput As HANDLE, pBuffer As VoidPtr, nNumberOfCharsToWrite As DWord, ByRef NumberOfCharsWritten As DWord, pReserved As VoidPtr) As BOOL
|
---|
| 29 |
|
---|
| 30 | Declare Function CreateConsoleScreenBuffer Lib "kernel32" (dwDesiredAccess As DWord, dwShareMode As DWord, pSecurityAttributes As *SECURITY_ATTRIBUTES, dwFlags As DWord, pScreenBufferData As VoidPtr) As HANDLE
|
---|
| 31 |
|
---|
| 32 | Declare Function SetConsoleActiveScreenBuffer Lib "kernel32" (hConsoleOutput As HANDLE) As BOOL
|
---|
| 33 |
|
---|
| 34 | #endif '_INC_CONSOLE
|
---|
Note:
See
TracBrowser
for help on using the repository browser.