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

1.1       root        1: /****************************************************************************
1.1.1.3 ! root        2:                     Microsoft RPC Version 1.0
        !             3:                  Copyright Microsoft Corp. 1992
        !             4:                          whello Example
        !             5: 
        !             6:     FILE:       whellop.c
1.1       root        7: 
                      8:     PURPOSE:    Remote procedures that are linked with the server
1.1.1.3 ! root        9:                 side of RPC distributed application
        !            10: 
        !            11:     FUNCTIONS:  HelloProc() - prints "hello, world" or other string
        !            12:                 sent by client to server
        !            13: 
        !            14:     COMMENTS:   Windows version of the "Hello, world" example.
        !            15: 
        !            16:                 Windows can have several copies of your application 
        !            17:                 running at the same time.  The variable hInst keeps 
        !            18:                 track of which instance the application is so that 
        !            19:                 processing will be to the correct window.
        !            20: 
1.1       root       21: ****************************************************************************/
1.1.1.3 ! root       22: 
1.1       root       23: #include <stdlib.h>
1.1.1.3 ! root       24: #include <stdio.h>    
        !            25: #include "whello.h"    // header file generated by MIDL compiler
1.1       root       26: 
1.1.1.2   root       27: void HelloProc(unsigned char * pszString)
1.1       root       28: {
                     29:     printf("%s\n", pszString);
                     30: }
                     31: 
                     32: void Shutdown(void)
                     33: {
                     34:     RPC_STATUS status;
                     35: 
                     36:     printf("Calling RpcMgmtStopServerListening\n");
                     37:     status = RpcMgmtStopServerListening(NULL);
                     38:     printf("RpcMgmtStopServerListening returned: 0x%x\n", status);
                     39:     if (status) {
1.1.1.3 ! root       40:         exit(status);
1.1       root       41:     }
                     42: 
                     43:     printf("Calling RpcServerUnregisterIf\n");
                     44:     status = RpcServerUnregisterIf(NULL, NULL, FALSE);
                     45:     printf("RpcServerUnregisterIf returned 0x%x\n", status);
                     46:     if (status) {
1.1.1.3 ! root       47:         exit(status);
1.1       root       48:     }
                     49: }
                     50: 
                     51: /* 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.