|
|
Microsoft Windows NT Pre-Release 11-19-1991
/****************************************************************************
Microsoft RPC Version 1.0 Alpha
October 1991
Adder1 Example
FILE: adder1\procs.c
PURPOSE: Remote procedures that are linked with the server
side of RPC distributed application adder1
FUNCTIONS: AdderProc1() - adds two short integers,
returns a short integer
COMMENTS:
This distributed application adds two short integers and
returns the result. This application manages its own
connection to the server. It uses the binding handle
hRpcAdder, defined in the file adder1.h.
****************************************************************************/
#include <stdio.h> // printf
short AdderProc1(short i1, short i2)
{
printf("%hu + %hu = %hu\n", i1, i2, i1 + i2);
return(i1 + i2);
}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.