Print Page | Close Window

Missing Hook for CreateThread

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=23972
Printed Date: 29 April 2024 at 1:18pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Missing Hook for CreateThread
Posted By: MarkusA
Subject: Missing Hook for CreateThread
Date Posted: 31 March 2020 at 7:48am
Dear Codejock-Team,

during our migration from Visual Studio 2010 to Visual Studio 2017 we encountered the following error: Every time when we started a thread the whole skin of our application got broken.

After some research we found out that you are hooking the Method "CreateThread" from the following Windows DLLs (in your Class CXTPSkinManagerApiHook):
  • API-MS-WIN-CORE-PROCESSTHREADS-L1-1-1.DLL
  • API-MS-WIN-CORE-PROCESSTHREADS-L1-1-2.DLL

But the following DLL ist missing here (Last number is Zero):
  • API-MS-WIN-CORE-PROCESSTHREADS-L1-1-0.DLL

Code from the current Version 19.1.0 (XTPSkinManagerApiHook.cpp Line 1058):

    XTPSFHOOKINFOEX("API-MS-WIN-CORE-PROCESSTHREADS-L1-1-1.DLL", CreateThread,
                    API_MS_WIN_CORE_PROCESSTHREADS_L1_1_1, 0, &CXTPSystemVersion::IsWin8OrGreater),
    XTPSFHOOKINFOEX("API-MS-WIN-CORE-PROCESSTHREADS-L1-1-2.DLL", CreateThread,
                    API_MS_WIN_CORE_PROCESSTHREADS_L1_1_2, 0, &CXTPSystemVersion::IsWin81OrGreater),


Looking at the other hooks we decided to add the following Hook:

    XTPSFHOOKINFOEX("API-MS-WIN-CORE-PROCESSTHREADS-L1-1-0.DLL", CreateThread,
                    API_MS_WIN_CORE_PROCESSTHREADS_L1_1_0, 0, &CXTPSystemVersion::IsWin7OrGreater),


We are using this since Mid 2019 with Codejock 18.6.0 and Visual Studio 2017 (v 15.9.14) and currently with Codejock 19.1.0 and Visual Studio 2019 (v 16.5.1).

Can you verify this fix and apply it with the next Codejock Release?

Yours Sincerely
Markus



Replies:
Posted By: matthewS
Date Posted: 09 June 2020 at 5:17pm
Hi Markus

Did you get resolution for this problem. We are having a similar issue?




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net