Skip to content

Need Help to find desktop handle

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #189235
    Newbie
    Member

    I need to find the desktop handle.

    Any help is appreciated

    #189237
    Admin
    Administrator

    hmmmmmm this is what i got :

    Dim progman As Long
    Dim shelldlldefview As Long
    Dim syslistview As Long

    progman = FindWindow("progman", vbNullString)
    shelldlldefview = FindWindowEx(progman, 0&, "shelldll_defview", vbNullString)
    syslistview = FindWindowEx(shelldlldefview, 0&, "syslistview32", vbNullString)

    If syslistview = 0 Then
    Msgbox "Error: Cannot find window"
    Exit Sub
    End If

    ‘progman’ i assume is the handle to the desktop.

    #189236
    Newbie
    Member

    nope,

    but anyway. I solve it

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.