Results 1 to 10 of 10

Thread: Window Class

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2000
    Location
    Ontario, Canada
    Posts
    61

    Angry

    How Do you get a windows class name
    ---~^ Absalom ^~---

    There is nobody in the world who knows everything there is no one his/her workforce who knows everything what really makes the person smart is that he/she is not affraid to ask for help.

  2. #2
    Hyperactive Member theman32x's Avatar
    Join Date
    May 2000
    Location
    New Jersey, USA
    Posts
    305
    use an api spy - vb has one called spy++

  3. #3
    Guest
    You have to use an API Spy to get it. Here is the link to download Patorjk's api spy.

    If you would rather get it yourself, check out the GetClassName api.

  4. #4
    Guest
    you can download my api spy!

    its called CSpy.zip or CSpy2.zip

    the only difference is the way the thing is displayed.
    I like version 1 better.
    http://64.82.89.52



  5. #5
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169

    Angry

    I really think I need to quibble here. So many people who are supposed to be good at this sort of thing are calling it an API Spy. It isn't. Technically, an API spy would tell you all the functions in a DLL. This is just a Window Spy.

    Sorry to be causing trouble, but I've seen them called this a lot, and it's wrong.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  6. #6
    Hyperactive Member theman32x's Avatar
    Join Date
    May 2000
    Location
    New Jersey, USA
    Posts
    305

    well

    i'm not one of those people who are supposed to be good at this sort of thing ... lol

  7. #7
    Guest
    parksie: Do you know where I can get a Real API spy (or DLL viewer, whatever you call it)?

  8. #8
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    I really don't think you can. The problem is, DLLs don't have a well-defined 'contents list'. The only real way to know what's in there is by having the header file for it. I have tried and failed to find function definitions for DLLs, but it is extremely difficult.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  9. #9
    Guest
    Parksie, I know its not really called an API Spy, but if I called it a Handle spy, nobody would know what I was talking about,
    I do have a Real API Spy, it spy's on all the functions from what dll's a certain program uses, its shareware though, and I dont use it enough to buy.
    I downloaded it from http://www.download.com and I searched for "API Spy".

  10. #10
    Guest
    Use GetClassName
    Code:
    Private Declare Function GetClassName Lib "user32" Alias "GetClassNameA" (ByVal hwnd As Long, ByVal lpClassName As String, ByVal nMaxCount As Long) As Long
    
    Private Sub Command1_Click()
        Dim sClass As String
        sClass = Space(255)
        nChar = GetClassName(Command1.hwnd, sClass, 255)
        Print Left(sClass, nChar)
    End Sub

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