Click to open or copy the files for the NHello sample.
This sample demonstrates using RPC Name Service.
Main Files
File | Description |
Nhello.idl | Interface definition language file |
Nhelloc.c | Client main program |
Nhellos.c | Server main program |
Nhellop.c | Remote procedures |
Nsserv.c | NT Service program |
Service.c | Service Control Manager interface |
Makefile | Nmake file to build for Windows NT or Windows 95 |
Makefile.dos | Nmake file to build for MS-DOS |
This sample uses the following keywords:
_stprintf; _stricmp; _tprintf; addtomessagelog; atoi; closeservicehandle; cmddebugservice; cmdinstallservice; cmdremoveservice; commandlinetoargvw; controlservice; createservice; defined; deleteservice; deregistereventsource; exit; formatmessage; fprintf; free; getcommandlinew; getlasterror; getlasterrortext; getmodulefilename; helloproc; localfree; lstrlen; malloc; midl_user_allocate; midl_user_free; ndrclientinitializenew; ndrconformantstringbuffersize; ndrconformantstringmarshall; ndrconformantstringunmarshall; ndrconvert; ndrfcshort; ndrfreebuffer; ndrgetbuffer; ndrsendreceive; ndrserverinitializenew; nhello_helloproc; nhello_shutdown; openscmanager; openservice; printf; queryservicestatus; registereventsource; registerservicectrlhandler; reportevent; reportstatustoscmgr; rpcbindingfree; rpcbindingtostringbinding; rpcbindingvectorfree; rpcepregister; rpcepunregister; rpcexcept; rpcexceptioncode; rpcmgmtisserverlistening; rpcmgmtstopserverlistening; rpcmgmtwaitserverlisten; rpcnsbindingexport; rpcnsbindingimportbegin; rpcnsbindingimportdone; rpcnsbindingimportnext; rpcnsbindingunexport; rpcserverinqbindings; rpcserverlisten; rpcserverregisterif; rpcserverunregisterif; rpcserveruseallprotseqs; rpcstringfree; service_ctrl; service_main; servicestart; servicestop; setconsolectrlhandler; setservicestatus; shutdown; sleep; startservicectrldispatcher; switch; text; tolower; usage