|
|
1.1 root 1: /****************************************************************************
2: Microsoft RPC Version 1.0
3: Copyright Microsoft Corp. 1992
4: Auto Example
5:
6: FILE: autop.c
7: PURPOSE: Remote procedures that are linked with the server
8: side of RPC distributed application
9: FUNCTIONS: TimeProc() - obtains the time from the server
10: COMMENTS:
11: ****************************************************************************/
12: #include <stdlib.h>
13: #include <stdio.h> // printf
14: #include <time.h>
15: #include <rpc.h>
16: #include "auto.h"
17:
18: void GetTime(time_t * pTime)
19: {
20: time(pTime);
21: return;
22: }
23:
24: void Shutdown(void)
25: {
26: RPC_STATUS status;
27:
28: printf("Calling RpcMgmtStopServerListening\n");
29: status = RpcMgmtStopServerListening(NULL);
30: printf("RpcMgmtStopServerListening returned: 0x%x\n", status);
31: if (status) {
32: exit(2);
33: }
34:
35: printf("Calling RpcServerUnregisterIf\n");
36: status = RpcServerUnregisterIf(NULL, NULL, FALSE);
37: printf("RpcServerUnregisterIf returned 0x%x\n", status);
38: if (status) {
39: exit(2);
40: }
41:
42: }
43: /* end autop.c */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.