desktop handle
From
Wendelin Uez@21:1/5 to
All on Mon Apr 15 12:48:01 2024
Trying to read (and set) Windows desktop icons' titles and positions I found these examples to get access to their handles:
#1
hDesk = FindWindow("progman", vbNullString)
hDesk = FindWindowEx(hDesk, 0, "SHELLDLL_DefView", vbNullString)
hDesk = FindWindowEx(hDesk, 0, "SysListView32", "FolderView")
#2
hDesk = FindWindow("progman", "Program Manager")
hDesk = GetWindow(hDesk, GW_CHILD)
hDesk = GetWindow(hDesk, GW_CHILD)
In both examples the second line returns zero in WIN8.1 while it works in WIN10.
Although the returned handle in line 2 is zero GetLastError() returns zero, too.
What might be going wrong here?
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)