balala's answer is probably the easier way to go if this is the only task your .exe is doing.
As far as why FindWindow is failing, I have no idea. You could try one of the following to see if they work.
-Brian
As far as why FindWindow is failing, I have no idea. You could try one of the following to see if they work.
- Also use the window's title: HWND rmWnd = FindWindow(L"DummyRainWClass", L"Rainmeter control window");
- Try using FindWindowEx (with and without the window's title): HWND rmWnd = FindWindowEx(NULL, NULL, "DummyRainWClass", NULL); or HWND rmWnd = FindWindowEx(NULL, NULL, "DummyRainWClass", L"Rainmeter control window");
-Brian
Statistics: Posted by Brian — Yesterday, 9:47 pm — Replies 2 — Views 37