Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.basic.visual.misc > #4333

desktop handle

From "Wendelin Uez" <wuez@online.de>
Newsgroups comp.lang.basic.visual.misc
Subject desktop handle
Date 2024-04-15 12:48 +0200
Organization A noiseless patient Spider
Message-ID <uvj0ll$82ik$1@dont-email.me> (permalink)

Show all headers | View raw


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?

Back to comp.lang.basic.visual.misc | Previous | Next | Find similar


Thread

desktop handle "Wendelin Uez" <wuez@online.de> - 2024-04-15 12:48 +0200

csiph-web