Click to open or copy the files for the DUnion sample.
This sample illustrates discriminated unions.
Main Files
| File | Description | 
| Dunion.idl | Interface definition language file | 
| Dunion.acf | Attribute configuration file | 
| Dunionc.c | Client main program | 
| Dunions.c | Server main program | 
| Dunionp.c | Remote procedures | 
| 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:
atof; atoi; defined; displayunionvalue; dunion_shutdown; dunion_unionparamproc; dunion_unionstructproc; exit; fprintf; free; malloc; midl_user_allocate; midl_user_free; ndrclientinitializenew; ndrcomplexstructbuffersize; ndrcomplexstructmarshall; ndrcomplexstructunmarshall; ndrconvert; ndrfclong; ndrfcshort; ndrfreebuffer; ndrgetbuffer; ndrnonencapsulatedunionbuffersize; ndrnonencapsulatedunionmarshall; ndrnonencapsulatedunionunmarshall; ndrpointerfree; ndrsendreceive; ndrserverinitializenew; printf; rpcbindingfree; rpcbindingfromstringbinding; rpcexcept; rpcexceptioncode; rpcmgmtstopserverlistening; rpcmgmtwaitserverlisten; rpcserverlisten; rpcserverregisterif; rpcserverunregisterif; rpcserveruseprotseqep; rpcstringbindingcompose; shutdown; switch; tolower; unionparamproc; unionstructproc; usage