code: def get_title():
      ''' Returns console title string.
  
          https://docs.microsoft.com/en-us/windows/console/getconsoletitle
      '''
      MAX_LEN = 256
      buffer_ = create_unicode_buffer(MAX_LEN)
      kernel32.GetConsoleTitleW(buffer_, MAX_LEN)
      log.debug('%s', buffer_.value)
      return buffer_.valuf get_title():
      ''' Returns console title string.
  
          https://docs.microsoft.com/en-us/windows/console/getconsoletitle
      '''
      MAX_LEN = 256
      buffer_ = create_unicode_buffer(MAX_LEN)
      kernel32.GetConsoleTitleW(buffer_, MAX_LEN)
      log.debug('%s', buffer_.value)
      return buffer_.value
docs: Returns console title string.
  
          https://docs.microsoft.com/en-us/windows/console/getconsoletitle