MCPcopy Create free account
hub / github.com/WallBreaker2/op / FindWindowByProcess

Method FindWindowByProcess

libop/com/OpAutomation.cpp:205–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205STDMETHODIMP OpAutomation::FindWindowByProcess(BSTR process_name, BSTR class_name, BSTR title, LONGLONG *rethwnd) {
206 LONG_PTR hwnd = 0;
207 obj.FindWindowByProcess(process_name, class_name, title, &hwnd);
208 return SetOutValue(rethwnd, hwnd);
209}
210
211STDMETHODIMP OpAutomation::FindWindowByProcessId(LONG process_id, BSTR class_name, BSTR title, LONGLONG *rethwnd) {
212 LONG_PTR hwnd = 0;

Callers 1

OpFindWindowByProcessFunction · 0.45

Calls 1

SetOutValueFunction · 0.85

Tested by

no test coverage detected