扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
在本页阅读全文(共2页)
Private Declare Function AllocConsole Lib "kernel32"() As Long |
Private Declare Function FreeConsole Lib "kernel32"() AS Long |
Private Declare Function GetStdHandle Lib "kernel32" (ByVal nStdHandle As Long) As Long |
Private Const STD_INPUT_HANDLE = -10& ''返回 input handle Private Const TD_OUTPUT_HANDLE = - 11& ''返回 output handle Private Const STD_ERROR_HANDLE = -12& ''返回 error handle |
Private Declare Function WriteConsole Lib "kernel32" Alias "WriteConsoleA" _ (ByVal hConsoleoutput As Long,ByVal lpBuffer As Any, ByVal nNumberofCharsTowrite _ As Long, IpNumberofCharsWritten As Long, lpReserved As Any) As Long |
Private Declare Function ReadConsole Lib "kernel32" Alias "ReadConsoleA" _ (ByVal hConsoleInput As Long, ByVal lpBuffer As String, ByVal nNumberofCharsToRead _ As Long,lpNumberofCharsRead As Long, lpReserved As Any) As Long |
Private Declare Function SetConsoleMode Lib "kernel32" (ByVal hConsoleHandle _ As Long, dwMode As Long) As Long |
Private Const ENABLE_LINE_INPUT = &H2 Private Const ENABLE_ECHO_INPUT = &H4 Private Const ENABLE_MOUSE_INPUT = &H10 Private Const ENABLE_PROCESSED_INPUT = &H1 Private Const ENABLE_WINDOW_INPUT = &H8 |
Private Const ENABLE_PROCESSED_OUTPUT = &H1 Private Const ENABLE_WRAP_AT_EOL_OUTPUT = &H2 |
Private Declare Function SetConsoleTitle_Lib "kernel32"Alias "SetConsoleTitleA" _ (ByVal lpConsoleTitle As String) As Long |
Private Declare Functon SetConsoleTextAttribute Lib "hernel32" _ (ByVal hConsoleOutput As Long, ByVal wAttributes As Long) As Long |
Private Const FOREGROUND_BLUE = &H1 ''前景:蓝 Private Const FOREGROUND_GREEN = &H2 ''前景:绿 Private Const FOREGROUND_RED = &H4 ''前恐;红 Private Const FOREGROUND_INTENSITY = &H8 ''前景:高亮度 Private Const BACKGROUND_BLUE = &H10 ''背景:蓝 Private Const BACKGROUND_GREEN = &H20 ''背景:绿 Private Const BACKGROUND_RED = &H40 ''背景:红 Private Const BACKGROUND_INTENSITY = &H80 ''背景:高亮度 |
Private Const FOREGROUND_YELLOW = FOREGROUND_RED Or FOREGROUND_GREEN |
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。
现场直击|2021世界人工智能大会
直击5G创新地带,就在2021MWC上海
5G已至 转型当时——服务提供商如何把握转型的绝佳时机
寻找自己的Flag
华为开发者大会2020(Cloud)- 科技行者