Hello, I'm developing a toolbar for IE, and I need my toolbar to be able to get the HWND of the containing IE window. It needs to be accurate so that multiple tabs in the same window will all return the same HWND, but different from another IE window.
What would be the best way about this? I should be able to do this:
MessageBox.Show(Process.GetCurrentProcess().MainWindowHandle.ToString());
But it always returns '0' as the HWND.