RSC/MP 7.2 Programming Manual

API Function Descriptions
HP NonStop Remote Server Call (RSC/MP) Programming Manual522360-004
10-10
RscDisconnect [RSCDIS]
RscDisconnect [RSCDIS]
The RscDisconnect function terminates the connection between the workstation
application and the TDP. This function should be called prior to terminating the
workstation application. Any sessions still outstanding on the connection are
terminated by the TDP, and transactions outstanding on those sessions are aborted.
ulConnectionHandle
The handle of the connection to terminate. The handle is created by the
RscConnect function.
Return Value
The return value is zero if the function is successful; otherwise, the function returns
one of these result values:
Note. The application should issue an RscEndTransaction call for all sessions that have
outstanding transactions and call RscEndSession to end any outstanding sessions before
calling RscDisconnect.
USHORT RscDisconnect
(ULONG ulConnectionHandle /* in */
);
RSC_INVALID_CONNECTION_HANDLE 6
RSC_PC_HEAP_EXHAUSTED 22