Kernel32GetConsoleOriginalTitle Method
Retrieves the original title for the current console window.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Kernel32.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)]
public static uint GetConsoleOriginalTitle(
StringBuilder buffer,
uint bufferSize
)
<DllImportAttribute("Kernel32.dll", CharSet := CharSet.Auto, BestFitMapping := false,
ThrowOnUnmappableChar := true, SetLastError := true>]
Public Shared Function GetConsoleOriginalTitle (
buffer As StringBuilder,
bufferSize As UInteger
) As UInteger
Dim buffer As StringBuilder
Dim bufferSize As UInteger
Dim returnValue As UInteger
returnValue = Kernel32.GetConsoleOriginalTitle(buffer,
bufferSize)
public:
[DllImportAttribute(L"Kernel32.dll", CharSet = CharSet::Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)]
static unsigned int GetConsoleOriginalTitle(
StringBuilder^ buffer,
unsigned int bufferSize
)
[<DllImportAttribute("Kernel32.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)>]
static member GetConsoleOriginalTitle :
buffer : StringBuilder *
bufferSize : uint32 -> uint32
No code example is currently available or this language may not be supported.
- buffer StringBuilder
-
A pointer to a buffer that receives a null-terminated string containing the original title.
- bufferSize UInt32
-
The size of buffer, in characters.
UInt32
If the function succeeds, the return value is the length of the string copied to the buffer, in characters.
If the buffer is not large enough to store the title,
the return value is zero and GetLastError returns
ERROR_SUCCESS.
If the function fails, the return value is zero and GetLastError returns the error code.