WinApi - How to obtain SHELLDLL_DefView

前端 未结 2 1419
感动是毒
感动是毒 2021-01-25 07:18

I am trying to obtain handle to SHELLDLL_DefView.

So, I have this code.

HWND hProgman = FindWindow(L\"Progman\", NULL);
HWND hWnd = FindWindowEx(hProgman         


        
2条回答
  •  灰色年华
    2021-01-25 07:32

    I found the answer. Need to iterate through all WorkerW.

    HWND destop = GetDesktopWindow();
    HWND hWorkerW = NULL;
    HWND hShellViewWin = NULL;
    do
    {
        hWorkerW = FindWindowEx(destop, hWorkerW, L"WorkerW", NULL);
        hShellViewWin = FindWindowEx(hWorkerW, 0, L"SHELLDLL_DefView", 0);
    } while (hShellViewWin == NULL && hWorkerW != NULL);
    

提交回复
热议问题