Annotation of mstools/samples/rpc/ns/nhello/nhellop.c, revision 1.1

1.1     ! root        1: /****************************************************************************
        !             2:                    Microsoft RPC Version 1.0
        !             3:                 Copyright Microsoft Corp. 1992
        !             4:                        nhello Example
        !             5: 
        !             6:     FILE:       nhellop.c
        !             7:     
        !             8:     PURPOSE:    Remote procedures that are linked with the server
        !             9:                 side of RPC distributed application
        !            10:     
        !            11:     FUNCTIONS:  TimeProc() - obtains the time from the server
        !            12:     
        !            13:     COMMENTS:
        !            14: 
        !            15: ****************************************************************************/
        !            16: 
        !            17: #include <stdlib.h>
        !            18: #include <stdio.h>   
        !            19: #include <time.h>
        !            20: #include "nhello.h"    // header file generated by MIDL compiler
        !            21: 
        !            22: void HelloProc(handle_t hHello, unsigned char *pszString)
        !            23: {
        !            24:     printf("%s\n", pszString);
        !            25:     return;
        !            26: }
        !            27: 
        !            28: void Shutdown(handle_t hHello)
        !            29: {
        !            30:     RPC_STATUS status;
        !            31: 
        !            32:     printf("Calling RpcMgmtStopServerListening\n");
        !            33:     status = RpcMgmtStopServerListening(NULL);
        !            34:     printf("RpcMgmtStopServerListening returned: 0x%x\n", status);
        !            35:     if (status) {
        !            36:         exit(status);
        !            37:     }
        !            38: 
        !            39:     printf("Calling RpcServerUnregisterIf\n");
        !            40:     status = RpcServerUnregisterIf(NULL, NULL, FALSE);
        !            41:     printf("RpcServerUnregisterIf returned 0x%x\n", status);
        !            42:     if (status) {
        !            43:         exit(status);
        !            44:     }
        !            45: }
        !            46: 
        !            47: /* end file nhellop.c */

unix.superglobalmegacorp.com

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