/****************************************************************************
Microsoft RPC Version 2.0
Copyright Microsoft Corp. 1992, 1993, 1994- 1996
whello Example
FILE: whellop.c
PURPOSE: Remote procedures that are linked with the server
side of RPC distributed application
FUNCTIONS: HelloProc() - prints "hello, world" or other string
sent by client to server
COMMENTS: Windows version of the "Hello, world" example.
Windows can have several copies of your application
running at the same time. The variable hInst keeps
track of which instance the application is so that
processing will be to the correct window.
****************************************************************************/
#include <stdlib.h>
#include <stdio.h>
#include "whello.h" // header file generated by MIDL compiler
void HelloProc(unsigned char * pszString)
{
printf("%s\n", pszString);
}
void Shutdown(void)
{
RPC_STATUS status;
printf("Calling RpcMgmtStopServerListening\n");
status = RpcMgmtStopServerListening(NULL);
printf("RpcMgmtStopServerListening returned: 0x%x\n", status);
if (status) {
exit(status);
}
printf("Calling RpcServerUnregisterIf\n");
status = RpcServerUnregisterIf(NULL, NULL, FALSE);
printf("RpcServerUnregisterIf returned 0x%x\n", status);
if (status) {
exit(status);
}
}
/* end of file whellop.c */