--- mstools/samples/rpc/handles/auto/autop.c 2018/08/09 18:20:56 1.1.1.1 +++ mstools/samples/rpc/handles/auto/autop.c 2018/08/09 18:24:19 1.1.1.2 @@ -1,19 +1,23 @@ /**************************************************************************** - Microsoft RPC Version 1.0 - Copyright Microsoft Corp. 1992 - Auto Example + Microsoft RPC Version 1.0 + Copyright Microsoft Corp. 1992 + Auto Example - FILE: autop.c + FILE: autop.c + PURPOSE: Remote procedures that are linked with the server - side of RPC distributed application - FUNCTIONS: TimeProc() - obtains the time from the server - COMMENTS: + side of RPC distributed application + + FUNCTIONS: TimeProc() - obtains the time from the server + + COMMENTS: This distributed application uses an auto handle. + ****************************************************************************/ + #include -#include // printf +#include #include -#include -#include "auto.h" +#include "auto.h" // header file generated by MIDL compiler void GetTime(time_t * pTime) { @@ -29,15 +33,15 @@ void Shutdown(void) status = RpcMgmtStopServerListening(NULL); printf("RpcMgmtStopServerListening returned: 0x%x\n", status); if (status) { - exit(2); + exit(status); } printf("Calling RpcServerUnregisterIf\n"); status = RpcServerUnregisterIf(NULL, NULL, FALSE); printf("RpcServerUnregisterIf returned 0x%x\n", status); if (status) { - exit(2); + exit(status); } - } -/* end autop.c */ + +/* end file autop.c */