RSC/MP Programming Manual
API Function Descriptions
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.
USHORT RscEndSession
(ULONG ulConnectionHandle /* in */
,ULONG ulSessionHandle /* in */
);
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 va lue is zero if the function is successful; otherwise, the function returns
one of these result va lues:
RSC_INVALID_CONNECTION_HANDLE
6
RSC_INVALID_SESSION_HANDLE
15
RSC_PC_HEAP_EXHAUSTED
22
HP NonStop Remote Server Call (RSC/MP) Programming Manual — 522360-006
10 - 11