I'm creating a COM object that needs a HWND for a window handle coming from WPF (HwndHost). All I have is IntPtr which comes from HwndHost.Handle.
How do I pass this correctly to my COM object? I'm not using P/Invoke.
I don't care whether the conversion happens in .NET or C++, but prefer whichever is best practice.