Annotation of mstools/samples/rpc/hello/hellop.c, revision 1.1.1.2

1.1       root        1: /****************************************************************************
                      2:                        Microsoft RPC Version 1.0
                      3:                      Copyright Microsoft Corp. 1992
                      4:                               Hello Example
                      5: 
                      6:     FILE:      hellop.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:     This version of the distributed application that prints
                     13:     "hello, world" (or other string) on the server features a client
                     14:     that manages its connection to the server. It uses the binding
                     15:     handle hello_IfHandle, defined in the file hello.h.
                     16: ****************************************************************************/
                     17: #include <stdlib.h>
                     18: #include <stdio.h>    // printf
                     19: #include <rpc.h>
1.1.1.2 ! root       20: #include "hello.h"
1.1       root       21: 
1.1.1.2 ! root       22: void HelloProc(unsigned char * pszString)
1.1       root       23: {
                     24:     printf("%s\n", pszString);
                     25: }
                     26: 
                     27: void Shutdown(void)
                     28: {
                     29:     RPC_STATUS status;
                     30: 
                     31:     printf("Calling RpcMgmtStopServerListening\n");
                     32:     status = RpcMgmtStopServerListening(NULL);
                     33:     printf("RpcMgmtStopServerListening returned: 0x%x\n", status);
                     34:     if (status) {
                     35:         exit(2);
                     36:     }
                     37: 
                     38:     printf("Calling RpcServerUnregisterIf\n");
                     39:     status = RpcServerUnregisterIf(NULL, NULL, FALSE);
                     40:     printf("RpcServerUnregisterIf returned 0x%x\n", status);
                     41:     if (status) {
                     42:         exit(2);
                     43:     }
                     44: }
                     45: 
1.1.1.2 ! root       46: /* end of file hellop.c */

unix.superglobalmegacorp.com

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