WinApi - How to obtain SHELLDLL_DefView
<p>I am trying to obtain handle to SHELLDLL_DefView.</p>

<p>So, I have this code.</p>

<pre><code>HWND hProgman = FindWindow(L"Progman", NULL);
HWND hWnd = FindWindowEx(hProgman, 0, L"SHELLDLL_DefView", NULL);
</code></pre>

<p>Eveyrtihing works OK, until I change in Windows desktop brackground to slideshow. Then when I search with spy++ hierarchy of the windows, than SHELLDLL_DefView has another parent. Now it is #32769 (Desktop) -> WorkerW -> SHELLDLL_DefView. So I can't find it. Problem is that when I try </p>

<pre><code>HWND desktop = GetDesktopWindow();
HWND hWnd = FindWindowEx(desktop , 0, L"WorkerW", NULL);
HWND hWnd = FindWindowEx(hWnd, 0, L"SHELLDLL_DefView", NULL);
</code></pre>

<p>Than SHELLDLL_DefView is not found. WorkerW yes.</p>

<p>Can anybody help?</p>