Windows C User Exits › Windows GUI Client User Exits › WRTERMID—Terminal ID Exit (Windows)
int WRTERMID (
char *rp1, char *rp2, char *termid)