<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : CXTPHookManager::OnWindowsHookProc</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CXTPHookManager::OnWindowsHookProc]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 14 Apr 2026 21:58:44 +0000</pubDate>
  <lastBuildDate>Fri, 16 Sep 2022 11:40:31 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=24327</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[CXTPHookManager::OnWindowsHookProc : I have code that, depending on...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24327&amp;PID=78527&amp;title=cxtphookmanageronwindowshookproc#78527</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3213">rdhd</a><br /><strong>Subject:</strong> 24327<br /><strong>Posted:</strong> 16 September 2022 at 11:40am<br /><br /><div>I have code that, depending on circumstances, calls ::SetWindowsKookEx with WH_CALLWNDPRCRET. We just noticed that it was failing to work when we use it.</div><div><br></div><div>With CJ 19.0, it works fine. With 19.3, it no longer works. I have traced this to using CJ shadows. I enable shadows in the version of our app that uses 19.0 and the version that uses 19.3.</div><div><br></div><div>I found CXTPHookManager::OnWindowsKookProc is used when a shadow is in use in 19.3. And, the code there appears wrong to me. I have always checked the input code and if &gt;= 0, I do my processing. Then, regardless of the code, I always call ::CallNextHookEx.</div><div><br></div><div>I the CJ method, CJ only calls ::CallNextHookEx if the code &lt; 0. This prevents my hook from ever being called.</div><div><br></div><div>Why isn't CJ calling the next hook in this case? I modified the CJ code to always call ::CallNextHookEx and it fixes my issue with 19.3. Is this an oversight or does CJ have some reason to avoid that.</div><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Fri, 16 Sep 2022 11:40:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24327&amp;PID=78527&amp;title=cxtphookmanageronwindowshookproc#78527</guid>
  </item> 
 </channel>
</rss>