RSC/MP 7.2 Programming Manual
Message Handling
HP NonStop Remote Server Call (RSC/MP) Programming Manual—522360-004
7-8
Error Handling Code Example
Error Handling Code Example
This code example uses RSC/MP error handling function calls and options. 
USHORT uReturn, uSubsystem, uError, uExtendedError, uErrorTextSize;
char szErrorText[256];
...
uReturn = RscWriteRead (ulOptionsHandle, ...
...
if ( uReturn != RSC_SUCCESS )
{
 uErrorTextSize = sizeof (szErrorText);
 uReturn = RscErrorInfo( uReturn, &uSubsystem, &uError, &uExtendedError,
 szErrorText, &uErrorTextSize);
 if (uReturn & RSC_CONNECT_ERROR) /*connect class error*/
 ...
 if (uReturn & RSC_ERROR_CONFIG) /*configuration error*/
 ...
}










