RSC/MP 7.2 Programming Manual

API Function Descriptions
HP NonStop Remote Server Call (RSC/MP) Programming Manual522360-004
10-11
RscEndSession [RSCEND]
RscEndSession [RSCEND]
The RscEndSession function terminates the session indicated by the ulSessionHandle
parameter. Any transactions still outstanding on the session are aborted, and I/O
operations that have not completed are discarded.
ulConnectionHandle
The handle of the connection relevant to the transaction. The connection handle is
created by the RscConnect function.
ulSessionHandle
The handle of the session to terminate. The session handle is created by the
RscBeginSession function.
Return Value
The return value is zero if the function is successful; otherwise, the function returns
one of these result values:
USHORT RscEndSession
(ULONG ulConnectionHandle /* in */
,ULONG ulSessionHandle /* in */
);
RSC_INVALID_CONNECTION_HANDLE 6
RSC_INVALID_SESSION_HANDLE 15
RSC_PC_HEAP_EXHAUSTED 22