XPLMSetWindowRefCon
XPLM_API void XPLMSetWindowRefCon(
XPLMWindowID inWindowID,
void * inRefcon);
Sets a window’s reference constant. Use this to pass data to yourself in the callbacks.