Results 1 to 3 of 3

Thread: Desktop Handle (API?)

  1. #1

    Thread Starter
    Hyperactive Member Wak's Avatar
    Join Date
    Nov 2000
    Location
    Brisbane, Queensland
    Posts
    298

    Question

    Don't know if this classifies under the API section.
    But how would I go about returning the Handle for the
    windows 98 desktop?

    Thanx for the Help.
    Visual Basic 6.0 Enterprise
    Visual C++ 6.0 Professional

    Wak

  2. #2
    Fanatic Member
    Join Date
    Sep 1999
    Location
    Bethel, North Carolina, USA
    Posts
    987
    Code:
    Declare Function GetDesktopWindow Lib "user32" Alias "GetDesktopWindow" () As Long
    
    Private Sub Form_Load()
     Dim lDeskHwnd as Long
    
     lDeskHwnd = GetDesktopWindow
    
    End Sub
    {Insert random techno-babble here}

    {Insert quote from some long gone mofo here}

  3. #3

    Thread Starter
    Hyperactive Member Wak's Avatar
    Join Date
    Nov 2000
    Location
    Brisbane, Queensland
    Posts
    298

    Cool Thanx for the Help

    Thanx for the help. Looks kinda simple when you put it that way.
    Visual Basic 6.0 Enterprise
    Visual C++ 6.0 Professional

    Wak

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width