Mapping from ORPC IDL to DCE RPC IDL
From the above extensions, and the wire representation definitions, one can conclude the following rules for converting ORPC IDL files to DCE IDL files:
- 1. Remove the [object] attribute from the interface definition.
- 2. Insert "[in] handle_t h" as the first argument of each method, "[in] ORPCTHIS *_orpcthis" as the second, and "[out] ORPCTHAT *_orpcthat" as the third.
- 3. Manually insert declarations for the operations that were inherited, if any. You may want to make the method names unique, unless the EPV invocation style is always going to be used. One way to do this is to prefix each method with the name of the interface. (Note that the IUnknown methods will never be called, as the IRemUnknown interface is used instead.)
- 4. Replace each occurrence of a type name derived from an interface name, or an [iid_is] qualified void* with OBJREF. Remove [iid_is] attributes.