I am trying to send parameters to a C++ api and came across one problem.
One of the Parameters passes: this->GetSafeHwnd() normally in win32.
I understand I can use
HwndSource source = (PresentationSource.FromVisual(this) as HwndSource);
However this is a WPF handle that I would be sending to a win32 so really I need to use "HwndHost" as a parameter.
How can I go about passing this value. Can I get the presentation window as a HwndHost?
View Complete Post