//+------------------------------------------------------------------------- // // Microsoft Windows // // Copyright (C) Microsoft Corporation, 1997 - 1999 // // File: drtp.cxx // //-------------------------------------------------------------------------- #include #include #include #include "drt.h" // header file generated by MIDL compiler void HelloProc(handle_t hHello, unsigned char *pszString) { printf("%s\n", pszString); return; } void Shutdown(handle_t hHello) { RPC_STATUS status; printf("Calling RpcMgmtIsServerListening\n"); status = RpcMgmtIsServerListening(NULL); printf("RpcMgmtIsServerListening returned: 0x%x\n", status); if ( status == RPC_S_OK ) { printf("Calling RpcMgmtStopServerListening\n"); status = RpcMgmtStopServerListening(NULL); printf("RpcMgmtStopServerListening returned: 0x%x\n", status); } } /* end file drtp.c */