Skip to content

6f488cea 3264 e40b ca1b 9b22a0df50b0

Axel Kesseler edited this page Mar 1, 2023 · 15 revisions

SystemConsoleWrapper.RestoreConsoleAttributes Method

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

Syntax

C#

private void RestoreConsoleAttributes(
	IntPtr hConsole,
	ushort attributes
)

Parameters

 

hConsole
Type: System.IntPtr
The Win32-Handle of the affected console screen buffer.
attributes
Type: System.UInt16
The bitset of attributes to be applied.

Remarks

Changing the current console screen buffer attributes takes only place if using colors is enabled and provided attributes are not (-1).

See Also

Reference

SystemConsoleWrapper Class
Plexdata.LogWriter.Internals.Native.Windows Namespace
SystemConsoleWrapper.SetConsoleColor(IntPtr, UInt16)

Clone this wiki locally