Nhu tiêu đề, em muốn đọc hiểu những thứ trong hàm dưới đây, mong mọi người hướng dẫn nguồn tài liệu, xin cảm ơn.
void set_color( int color ){
WORD wColor;
HANDLE hStdOut = GetStdHandle( STD_OUTPUT_HANDLE );
CONSOLE_SCREEN_BUFFER_INFO csbi;
if( GetConsoleScreenBufferInfo( hStdOut, &csbi) ){
wColor = ( csbi.wAttributes & 0xF0 ) + ( color & 0x0F );
SetConsoleTextAttribute( hStdOut, wColor );
}
}
83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?