CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2006
    Location
    Mumbai, India
    Posts
    292

    Getting control id in vista for hooking

    Hello,

    I need to hook a dialog in Windows Vista. I am doing it successfully in Windows XP by getting handle and a control id of particular control. I am using SendDlgItemMessage API for the same.

    In Windows Vista this doesnt work like XP. When I checked the dialog properties using SPY++, I found that the handle to the dialog is correct but the control id was 0x0000.

    Is there any way I can get the control id for the dialog in Vista.

    Thanks in advance.

  2. #2
    Join Date
    Aug 1999
    Location
    <Classified>
    Posts
    6,882

    Re: Getting control id in vista for hooking

    You can try getting the control handle directly using FindWindow/FindWindowEx with the control caption and class.
    Regards,
    Ramkrishna Pawar

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

Featured