| 165 | } |
| 166 | |
| 167 | STDMETHODIMP OpAutomation::EnumWindowByProcess(BSTR process_name, BSTR title, BSTR class_name, LONG filter, |
| 168 | BSTR *retstring) { |
| 169 | wstring s; |
| 170 | obj.EnumWindowByProcess(process_name, title, class_name, filter, s); |
| 171 | |
| 172 | CComBSTR newbstr; |
| 173 | newbstr.Append(s.data()); |
| 174 | newbstr.CopyTo(retstring); |
| 175 | return S_OK; |
| 176 | } |
| 177 | |
| 178 | STDMETHODIMP OpAutomation::EnumProcess(BSTR name, BSTR *retstring) { |
| 179 | wstring s; |
no test coverage detected