CSDestroyLogWindow Function


This function destroys the console window and its associated resources (like the internal queue buffer).


VB/A 32bits

Private Declare Function CSDestroyLogWindow Lib "consoul_010205_32.dll" ( _
  ByVal hWnd As Long _
) As Integer

VB/A 64bits

Private Declare PtrSafe Function CSDestroyLogWindow Lib "consoul_010205_64.dll" ( _
  ByVal hWnd As LongPtr _
) As Integer

Return Value

The return value is always 1.



The window handle (HWND) of the Consoul window, as returned by CSCreateLogWindow.


This function must be called before the container of the console window (the parent window, which handle was given to CSCreateLogWindow) is itself destroyed or the host will crash.

Last updated: May 13 2022.