{"id":7173,"date":"2012-07-09T07:00:00","date_gmt":"2012-07-09T07:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2012\/07\/09\/why-hasnt-the-api-hook-mechanism-for-x64-been-standardized-like-it-was-for-x86\/"},"modified":"2012-07-09T07:00:00","modified_gmt":"2012-07-09T07:00:00","slug":"why-hasnt-the-api-hook-mechanism-for-x64-been-standardized-like-it-was-for-x86","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20120709-00\/?p=7173","title":{"rendered":"Why hasn&#039;t the API hook mechanism for x64 been standardized like it was for x86?"},"content":{"rendered":"<p>Joshua posted to the Suggestion Box, &#8220;Around the time of WinXP SP2 x86, the API hook mechanism was standardized. <a href=\"http:\/\/blogs.msdn.com\/b\/oldnewthing\/archive\/2010\/07\/20\/10040074.aspx#10040389\"> Why wasn&#8217;t the same thing done for x64<\/a>?&#8221;\n Who said it was standardized for x86?\n Hooking APIs is not supported by Windows. There may be specific interfaces that expose hooks (like <code>Co&shy;Register&shy;Initialize&shy;Spy<\/code> to let you monitor calls to <code>CoInitialize<\/code> and <code>CoUninitialize<\/code>, and <code>Set&shy;Windows&shy;Hook&shy;Ex<\/code> to let you hook various window manager operations) but there is no supported general API hooking mechanism provided by the operating system.<\/p>\n<p> So I don&#8217;t know where you got that idea from. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Joshua posted to the Suggestion Box, &#8220;Around the time of WinXP SP2 x86, the API hook mechanism was standardized. Why wasn&#8217;t the same thing done for x64?&#8221; Who said it was standardized for x86? Hooking APIs is not supported by Windows. There may be specific interfaces that expose hooks (like Co&shy;Register&shy;Initialize&shy;Spy to let you monitor [&hellip;]<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[26],"class_list":["post-7173","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-other"],"acf":[],"blog_post_summary":"<p>Joshua posted to the Suggestion Box, &#8220;Around the time of WinXP SP2 x86, the API hook mechanism was standardized. Why wasn&#8217;t the same thing done for x64?&#8221; Who said it was standardized for x86? Hooking APIs is not supported by Windows. There may be specific interfaces that expose hooks (like Co&shy;Register&shy;Initialize&shy;Spy to let you monitor [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/7173","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=7173"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/7173\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=7173"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=7173"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=7173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}