I need to get the handle Chrome_RenderWidgetHostHWND
which is a component that runs within Google Chrome. I can get the handle from the main class, but when I try to get the Delphi it returns empty.
I'm doing this:
function Chrome: THandle;
var
hChromeWindow, hw: HWND;
begin
hChromeWindow := FindWindow('Chrome_WidgetWin_1', nil);
hw := FindWindowEx(hChromeWindow, 0, 'Chrome_RenderWidgetHostHWND', nil);
Result := hw;
end;
I no longer know what to do, I will be extremely grateful for any help.