home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / netds / rpc / interop / manager.c < prev    next >
Encoding:
C/C++ Source or Header  |  1996-06-12  |  1.0 KB  |  41 lines

  1.  
  2. /*************************************************************/
  3. /**                                                         **/
  4. /**                 Microsoft RPC Examples                  **/
  5. /**                 OSF DCE Interop Application             **/
  6. /**           Copyright(c) Microsoft Corp. 1993-1996        **/
  7. /**                                                         **/
  8. /*************************************************************/
  9.  
  10. #include <stdio.h>
  11. #include "msg.h"    /* header file generated by M/IDL compiler */
  12.  
  13. #if defined(__RPC_WIN32__) || defined(__RPC_DOS__)
  14. #include "dceport.h"
  15. #endif
  16.  
  17. /*
  18.  * Print out client messages
  19.  */
  20.  
  21. void ClientMessage(unsigned char *message)
  22. {
  23.     printf("%s\n", message);
  24.     return;
  25. }
  26.  
  27. /*
  28.  * The client can stop the server by calling this operation.
  29.  */
  30. void ShutdownServer()
  31. {
  32.     unsigned32 status;
  33.     rpc_mgmt_stop_server_listening(0, &status);
  34.     if (status)
  35.         {
  36.         printf("rpc_mgmt_stop_server_listening returns 0x%x\n", status);
  37.         }
  38.     return;
  39. }
  40.  
  41.