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.
|
|
//+-------------------------------------------------------------------------
//
// Microsoft Windows
//
// Copyright (C) Microsoft Corporation, 1997 - 1999
//
// File: drtp.cxx
//
//--------------------------------------------------------------------------
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#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 */
|