Need Help to find desktop handle

You can talk about VB programming here

Need Help to find desktop handle

Postby Newbie » Fri Oct 28, 2005 8:00 pm


I need to find the desktop handle.

Any help is appreciated
User avatar
Newbie
imFiles Junior
imFiles Junior
 
Posts: 95
Joined: Fri Oct 07, 2005 2:51 pm

Postby Guest » Fri Oct 28, 2005 9:06 pm

hmmmmmm this is what i got :\

Code: Select all
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.
Guest
 

Postby Newbie » Sat Oct 29, 2005 8:26 am

nope,

but anyway. I solve it
User avatar
Newbie
imFiles Junior
imFiles Junior
 
Posts: 95
Joined: Fri Oct 07, 2005 2:51 pm


Return to Visual Basic Programming

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests