If you want to build your server application as an in-process server -- a server that runs within the client application's process -- there are a few differences from what you would do for a local server, and a few additional considerations.
<ole-in-process-server>, page 272, instead of <ole-server-framework>.
<ole-in-process-server> class is itself a subclass of <ole-server-framework>, so in-process servers inherit all methods documented for <ole-server-framework>.
OLE-part-draw-metafile, the function OLE-part-draw, page 331, is called. This function takes one additional parameter, which is a rectangle specifying the size and position within which to draw.
initialize-ole-server, page 326.
Overall, an in-process server application will look something like this:
define constant $my-class-ID = make-GUID(...);
define COM-interface <my-object-class> (<ole-in-process-server>)
...
end;
... // methods on <my-object-class>
initialize-ole-server(<my-object-class>,
$my-class-ID,
"my.prog.id",
"title of my application");