Transact C client library


sp_create_session


Creates a session in the name of the calling client application.

ANSI Prototype

_kernel_oserror *sp_create_session(const ttmode, TYPSID *const);

Possible errors

Sample code

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;
}