Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Knowing window procedure from handle

Knowing window procedure from handle

Scheduled Pinned Locked Moved C / C++ / MFC
jsonhelptutorialquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sakhalean
    wrote on last edited by
    #1

    Hi, I want to hook the task bar for that I have used SetWindowHookEx() function in a DLL. But it it not working all times. I know the task manager handle using FindWindow() API. I want to catch the window procedure of the task bar using the task bar handle? how to do this please help me?

    L CPalliniC 2 Replies Last reply
    0
    • S Sakhalean

      Hi, I want to hook the task bar for that I have used SetWindowHookEx() function in a DLL. But it it not working all times. I know the task manager handle using FindWindow() API. I want to catch the window procedure of the task bar using the task bar handle? how to do this please help me?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      You can find this information using the GetWindowInfo function[^] to get the class reference of the window, and then GetClassInfoEx[^] to find the pointer to the Windows procedure.

      One of these days I'm going to think of a really clever signature.

      1 Reply Last reply
      0
      • S Sakhalean

        Hi, I want to hook the task bar for that I have used SetWindowHookEx() function in a DLL. But it it not working all times. I know the task manager handle using FindWindow() API. I want to catch the window procedure of the task bar using the task bar handle? how to do this please help me?

        CPalliniC Offline
        CPalliniC Offline
        CPallini
        wrote on last edited by
        #3

        You might use GetWindowLong with GWL_WNDPROC as second parameter (see MSDN[^]).

        Veni, vidi, vici.

        In testa che avete, signor di Ceprano?

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups