glSelectBuffer(GLsizei size, GLuint *buffer);
You can pass a buffer for selection information with that function.
For every defined event of the selection mode, the buffer will be
updated with the current state of the namestack and additional
information, e.g. depth area.