Does anyone know how to use the IDragDropManagerInterop interface with a desktop application?

91 Views Asked by At

I'm trying to use WinRT APIs with my Rust desktop application (since WinRT is simpler when you get it working, and it doesn't require unsafe code), but I can't seem to figure out how the use IDragDropManagerInterop.

I think I somehow need to get the drag/drop manager interface from some Windows API (I thought it was RoGetActivationFactory(), but I'm pretty sure that's wrong). Then from there, I can use IDragDropManagerInterop to get the drag/drop manager for my application window, and I can go from there.

I've been trying to figure this out, and I think the answer might be on this page: https://learn.microsoft.com/en-us/windows/win32/WinRT/interfaces, but I just have no idea what I'm doing.

0

There are 0 best solutions below