Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Skin Framework
  New Posts New Posts RSS Feed - Missing Hook for CreateThread
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Missing Hook for CreateThread

 Post Reply Post Reply
Author
Message
MarkusA View Drop Down
Groupie
Groupie
Avatar

Joined: 20 November 2015
Location: Austria
Status: Offline
Points: 24
Post Options Post Options   Thanks (0) Thanks(0)   Quote MarkusA Quote  Post ReplyReply Direct Link To This Post Topic: Missing Hook for CreateThread
    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
Back to Top
matthewS View Drop Down
Newbie
Newbie


Joined: 09 June 2020
Location: Oregon
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote matthewS Quote  Post ReplyReply Direct Link To This Post Posted: 09 June 2020 at 5:17pm
Hi Markus

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

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.