source: Include/api_console.sbp@ 69

Last change on this file since 69 was 1, checked in by (none), 18 years ago
File size: 1.3 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
16
17Declare Function AllocConsole Lib "kernel32" () As Long
18Declare Function FreeConsole Lib "kernel32" () As Long
19
20Declare Function SetConsoleCursorPosition Lib "kernel32" (hConsoleOutput As HANDLE, dwCursorPosition As DWord) As Long
21
22Declare Function ReadConsole Lib "kernel32" Alias "ReadConsoleA" (hConsoleInput As HANDLE, pBuffer As VoidPtr, nNumberOfCharsToRead As DWord, ByRef NumberOfCharsRead As DWord, pReserved As VoidPtr) As BOOL
23Declare Function WriteConsole Lib "kernel32" Alias "WriteConsoleA" (hConsoleOutput As HANDLE, pBuffer As VoidPtr, nNumberOfCharsToWrite As DWord, ByRef NumberOfCharsWritten As DWord, pReserved As VoidPtr) As BOOL
24
25Declare Function CreateConsoleScreenBuffer Lib "kernel32" (dwDesiredAccess As DWord, dwShareMode As DWord, pSecurityAttributes As *SECURITY_ATTRIBUTES, dwFlags As DWord, pScreenBufferData As VoidPtr) As HANDLE
26
27Declare Function SetConsoleActiveScreenBuffer Lib "kernel32" (hConsoleOutput As HANDLE) As BOOL
28
29#endif '_INC_CONSOLE
Note: See TracBrowser for help on using the repository browser.