Zhiyi Zhang (@zhiyi) commented about dlls/wintypes/main.c:
HRESULT WINAPI DllGetActivationFactory(HSTRING classid, IActivationFactory **factory) {
- const WCHAR *name;
- TRACE("classid %s, factory %p.\n", debugstr_hstring(classid), factory);
- name = WindowsGetStringRawBuffer(classid, NULL);
- if (!wcscmp(name, RuntimeClass_Windows_Foundation_Collections_PropertySet))
return propertyset_factory_create(factory);
We usually put a "extern IActivationFactory *propertyset_factory" in the private header. See dlls/cryptowinrt/main.c#DllGetActivationFactory for example.