I haven't researched this for long, but this piece of code appears to be where memory is copied from the gui-item to the user-supplied buffer. Tracing up a little brings up a bunch of references to SendMessage & GetWindowXXXX stuff... which would make sense.