RSC/MP Programming Manual
Message Handling
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*/
...
}
HP NonStop Remote Server Call (RSC/MP) Programming Manual — 522360-006 
7- 8 










