Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
996 B

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1997 - 1999
  6. //
  7. // File: drtp.cxx
  8. //
  9. //--------------------------------------------------------------------------
  10. #include <stdlib.h>
  11. #include <stdio.h>
  12. #include <time.h>
  13. #include "drt.h" // header file generated by MIDL compiler
  14. void HelloProc(handle_t hHello, unsigned char *pszString)
  15. {
  16. printf("%s\n", pszString);
  17. return;
  18. }
  19. void Shutdown(handle_t hHello)
  20. {
  21. RPC_STATUS status;
  22. printf("Calling RpcMgmtIsServerListening\n");
  23. status = RpcMgmtIsServerListening(NULL);
  24. printf("RpcMgmtIsServerListening returned: 0x%x\n", status);
  25. if ( status == RPC_S_OK )
  26. {
  27. printf("Calling RpcMgmtStopServerListening\n");
  28. status = RpcMgmtStopServerListening(NULL);
  29. printf("RpcMgmtStopServerListening returned: 0x%x\n", status);
  30. }
  31. }
  32. /* end file drtp.c */