Closed sivadeilra closed 1 month ago
Cool!
Oh wait, I was wrong. There's still a bunch of other symbols that I'll need to deal with, for DWriteCore. Like all of the VARIANT conversions that call into external functions. Still, this PR gets me one step closer.
@sivadeilra I think we could eliminate those VariantToProp/PropToVariant conversion functions altogether and just do the conversions ourselves (being careful to copy strings, convert filetimes, handle clsids, etc.). Or maybe a smaller step would be to just cfg! them away and see if anyone even needs them.
This is part of fixing #3083 . This allows non-Windows code to use more of the COM support from
windows-core
.This changes the
heap_alloc
function (and related) to usemalloc
on non-Windows platforms, instead ofHeapAlloc
.With this change, I can now build DWriteCore using
windows-rs
crates.