Annotation of mstools/samples/rpc/whello/whellop.c, revision 1.1.1.1

1.1       root        1: /****************************************************************************
                      2:                        Microsoft RPC Version 1.0
                      3:                      Copyright Microsoft Corp. 1992
                      4:                               WHello Example
                      5: 
                      6:     FILE:      whellop.c
                      7:     PURPOSE:    Remote procedures that are linked with the server
                      8:                side of RPC distributed application
                      9:     FUNCTIONS: HelloProc() - prints "hello, world" or other string
                     10:                sent by client to server
                     11:     COMMENTS:
                     12: ****************************************************************************/
                     13: #include <stdlib.h>
                     14: #include <stdio.h>    // printf
                     15: #include <rpc.h>
                     16: #include "whello.h"
                     17: 
                     18: void HelloProc(char * pszString)
                     19: {
                     20:     printf("%s\n", pszString);
                     21: }
                     22: 
                     23: void Shutdown(void)
                     24: {
                     25:     RPC_STATUS status;
                     26: 
                     27:     printf("Calling RpcMgmtStopServerListening\n");
                     28:     status = RpcMgmtStopServerListening(NULL);
                     29:     printf("RpcMgmtStopServerListening returned: 0x%x\n", status);
                     30:     if (status) {
                     31:         exit(2);
                     32:     }
                     33: 
                     34:     printf("Calling RpcServerUnregisterIf\n");
                     35:     status = RpcServerUnregisterIf(NULL, NULL, FALSE);
                     36:     printf("RpcServerUnregisterIf returned 0x%x\n", status);
                     37:     if (status) {
                     38:         exit(2);
                     39:     }
                     40: }
                     41: 
                     42: /* end of file whellop.c */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.