Add cursor position as out parameter to GetBufferState.