-
Notifications
You must be signed in to change notification settings - Fork 0
6f488cea 3264 e40b ca1b 9b22a0df50b0
Axel Kesseler edited this page Mar 1, 2023
·
15 revisions
This method changes all of the console screen buffer attributes.
Namespace: Plexdata.LogWriter.Internals.Native.Windows
Assembly: Plexdata.LogWriter.Console.Windows (in Plexdata.LogWriter.Console.Windows.dll) Version: 1.0.7.1
C#
private void RestoreConsoleAttributes(
IntPtr hConsole,
ushort attributes
)
- hConsole
- Type: System.IntPtr
The Win32-Handle of the affected console screen buffer. - attributes
- Type: System.UInt16
The bitset of attributes to be applied.
Changing the current console screen buffer attributes takes only place if using colors is enabled and provided attributes are not (-1).
SystemConsoleWrapper Class
Plexdata.LogWriter.Internals.Native.Windows Namespace
SystemConsoleWrapper.SetConsoleColor(IntPtr, UInt16)