//*************************************************************** // From the book "Win32 System Services: The Heart of Windows 98 // and Windows 2000" // by Marshall Brain // Published by Prentice Hall // // Copyright 1995, by Prentice Hall. // // This code implements the RPC server function. //*************************************************************** // sum.cpp #include #include "sum.h" long SumUp(handle_t SumUpHandle, short sumVal) { short iter; long theSum; theSum=0; for (iter=1; iter<=sumVal; theSum+=iter, iter++); Beep(300, 30); return(theSum); }