Transact C client library
sp_create_session
Creates a session in the name of the calling client application.
_kernel_oserror *sp_create_session(const ttmode, TYPSID *const);
ERR_BUSY;
ERR_INVALID_PARMS
Client Library: Memory allocation error;
Client Library: Uninitialized client library.
TYPSID msp_create_session(const ttmode mode)
{
TYPSID gsid;
_kernel_oserror *e= sp_create_session(mode, &gsid);
if(e) {
wimp_report_error(e, 0,0,0,0);
exit(EXIT_FAILURE);
}
fprintf(stderr,"Returned session ID %u\n", gsid);
return gsid;
}