IDispatch::GetTypeInfo across processes sends the library by value (as
the layer saves libraries) and which of its types; the receiver loads a
copy. Monikers go by value as OleSaveToStream writes them: IOleObject's
SetMoniker and GetMoniker, IOleClientSite::GetMoniker and
IAdviseSink::OnRename. IOleObject::EnumAdvise and
IDataObject::EnumDAdvise come back as copies of the connections, their
sinks as interfaces.
autotest asks its local server for an object's type information;
srvtest, natively, holds a server's object directly and checks its
advise connections, its data's, and its moniker, which the server gets
from the container's site.
Signed-off-by: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRw4kkFHrrHRhkcuLw
AfxOleRegisterServerClass registers a server's class from a list of
"key\0value" entries with %1 to %9 substitutions (the CLSID, class
name, path, type names, application name, icon index and filter), or
from the defaults for its OLE_APPTYPE. It honors the rglpszRegister
and rglpszOverwrite lists, which COleTemplateServer::UpdateRegistry
now passes on instead of ignoring. AfxOleUnregisterServerClass removes
the class, and AfxOleRegisterHelper writes such a list, keeping
existing values unless told to replace them.
srvtest checks custom lists, substitutions, kept and replaced values,
and the defaults for an automation object.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUqfQ3sTcDCMdNCGGs
The common control classes msctls_statusbar32, ToolbarWindow32 and
tooltips_class32 with their messages and notifications, plus
CreateStatusWindow, DrawStatusText, CreateToolbarEx, MenuHelp,
GetEffectiveClientRect, ShowHideMenuCtl, the drag list functions, and
the window subclassing helpers (SetWindowSubclass and the rest).
The SDI and MDI test programs now run natively up to print preview.
Their logs print LONG values with %d, which fits LONG on Windows and on
LP64 systems alike.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRw4kkFHrrHRhkcuLw
Signed-off-by: Claude <noreply@anthropic.com>
COleServerDoc implements IPersistStorage, IOleObject and IDataObject
over an embedded COleServerItem, with the embedded menus and
accelerators from SetServerInfo and the Update/Exit menu text
(afxolesv.rc). COleTemplateServer connects a template, registers the
class with its verbs and Insertable keys, and makes one document per
object. COleLinkingDoc registers its file in the running object table.
Fixes found on the way: COleDataSource copies metafile pictures itself
(Wine's OleDuplicateData does not), a single-instance factory revokes
itself after one object (Wine has no REGCLS_SINGLEUSE), CreateCloneFrom
copies the storage of an object that is not running, and the library
builds with -fno-delete-null-pointer-checks so NULL checks after a
member call on a NULL pointer stay in.
srvtest runs a container and its own server process end to end.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUqfQ3sTcDCMdNCGGs