restruct codes for ConsoleScreenBufferInfo