source: Include/api_console.sbp@ 119

Last change on this file since 119 was 119, checked in by イグトランス (egtra), 17 years ago

Unicode (#50) 前準備
Byte→Char (#51) 型名は殆ど完了、ただし中身までは手を付けていないものが多い

File size: 1.4 KB
Line 
1'api_console.sbp
2
3#ifndef _INC_CONSOLE
4#define _INC_CONSOLE
5
6'console text color
7Const FOREGROUND_BLUE = &H0001
8Const FOREGROUND_GREEN = &H0002
9Const FOREGROUND_RED = &H0004
10Const FOREGROUND_INTENSITY = &H0008
11Const BACKGROUND_BLUE = &H0010
12Const BACKGROUND_GREEN = &H0020
13Const BACKGROUND_RED = &H0040
14Const BACKGROUND_INTENSITY = &H0080
15
16Type COORD
17 X As Integer
18 Y As Integer
19End Type
20
21
22Declare Function AllocConsole Lib "kernel32" () As BOOL
23Declare Function FreeConsole Lib "kernel32" () As BOOL
24
25Declare Function SetConsoleCursorPosition Lib "kernel32" (hConsoleOutput As HANDLE, dwCursorPosition As DWord) As BOOL
26
27Declare Function ReadConsole Lib "kernel32" Alias "ReadConsoleA" (hConsoleInput As HANDLE, pBuffer As VoidPtr, nNumberOfCharsToRead As DWord, ByRef NumberOfCharsRead As DWord, pReserved As VoidPtr) As BOOL
28Declare 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
30Declare Function CreateConsoleScreenBuffer Lib "kernel32" (dwDesiredAccess As DWord, dwShareMode As DWord, pSecurityAttributes As *SECURITY_ATTRIBUTES, dwFlags As DWord, pScreenBufferData As VoidPtr) As HANDLE
31
32Declare Function SetConsoleActiveScreenBuffer Lib "kernel32" (hConsoleOutput As HANDLE) As BOOL
33
34#endif '_INC_CONSOLE
Note: See TracBrowser for help on using the repository browser.