9.7. Understanding the Code
To understand the code in Section 9.4, start with the IDL file shown in Listing 9.3, duplicated here:
[ uuid (22449651-4321-1234-4321-987654321CBA), version(1.0), endpoint ("ncacn_np:[\\pipe\\autorpc]") ] interface sumup { long SumUp([in] short sumVal); }
Each RPC server will have a unique IDL file that identifies the server and defines all of the functions it supports. The example file shown here, like all IDL files, contains a uuid (universally unique identifier) value that uniquely identifies this server. The uuid number is generated, along with the stub for the IDL file, by a program named uuidgen. For example, if you type
uuidgen -i
you will get a new IDL stub file containing a new uuid number. The ID number ...
Get Win32 System Services: The Heart of Windows® 98 and Windows® 2000 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.