> I also agree, but you still need to remember that the API function > GetConsoleScreenBufferInfo may fail and handle also that case, no? Right - you'd return -1 in this case. -- Joel