typedef struct _STATUSDATA { /* stsdata */ USHORT Length; /* length of this data structure */ USHORT SelectInd; /* 0=leave setting unchanged, 1=selectable 2=non-selectable */ USHORT BondInd; /* which session to bring to foreground */ } STATUSDATA; #define INCL_DOSSESMGR USHORT rc = DosSetSession(SessID, StatusData); USHORT SessID; /* Session ID */ PSTATUSDATA StatusData; /* Session status data */ USHORT rc; /* return code */