Function SetConsoleTextAttribute [src]

Prototype

pub fn SetConsoleTextAttribute(hConsoleOutput: HANDLE, wAttributes: WORD) SetConsoleTextAttributeError!void

Parameters

hConsoleOutput: HANDLEwAttributes: WORD

Possible Errors

Unexpected

Source

pub fn SetConsoleTextAttribute(hConsoleOutput: HANDLE, wAttributes: WORD) SetConsoleTextAttributeError!void { if (kernel32.SetConsoleTextAttribute(hConsoleOutput, wAttributes) == 0) { switch (GetLastError()) { else => |err| return unexpectedError(err), } } }