|
|
1.1 ! root 1: /**************************************************************************** ! 2: Microsoft RPC Version 1.0 ! 3: Copyright Microsoft Corp. 1992 ! 4: usrdef Example ! 5: ! 6: FILE: usrdefp.c ! 7: PURPOSE: Remote procedures that are linked with the server ! 8: side of RPC distributed application ! 9: FUNCTIONS: UsrdefProc() - ! 10: COMMENTS: ! 11: ****************************************************************************/ ! 12: #include <stdlib.h> ! 13: #include <stdio.h> // printf ! 14: #include <rpc.h> ! 15: #include "usrdef.h" ! 16: ! 17: void UsrdefProc(DATA_HANDLE_TYPE d1, char * pszString) ! 18: { ! 19: printf("%s\n", pszString); ! 20: } ! 21: ! 22: void Shutdown(DATA_HANDLE_TYPE d1) ! 23: { ! 24: RPC_STATUS status; ! 25: ! 26: printf("Calling RpcMgmtStopServerListening\n"); ! 27: status = RpcMgmtStopServerListening(NULL); ! 28: printf("RpcMgmtStopServerListening returned: 0x%x\n", status); ! 29: if (status) { ! 30: exit(2); ! 31: } ! 32: ! 33: printf("Calling RpcServerUnregisterIf\n"); ! 34: status = RpcServerUnregisterIf(NULL, NULL, FALSE); ! 35: printf("RpcServerUnregisterIf returned 0x%x\n", status); ! 36: if (status) { ! 37: exit(2); ! 38: } ! 39: } ! 40: ! 41: /* end of file \usrdefp.c */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.