From 9f13165f8196d3ec473f0574c840b0e71cfbcb88 Mon Sep 17 00:00:00 2001 From: Brady McDermott <freedom7341@hotmail.com> Date: Fri, 26 Jul 2024 15:19:31 -0600 Subject: [PATCH] my adidas --- CscdCfg/cfg.c | 6 +++--- CscdSvc/hook.c | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CscdCfg/cfg.c b/CscdCfg/cfg.c index a11da1a..d420324 100644 --- a/CscdCfg/cfg.c +++ b/CscdCfg/cfg.c @@ -8,6 +8,9 @@ MIT License, see LICENSE.txt in the root folder \* * * * * * * */ +/* Pragmas */ +#pragma warning(disable : 28159) // error C28159: 'GetTickCount': was declared deprecated + /* Includes */ #include <windows.h> #include <tchar.h> @@ -1008,11 +1011,9 @@ BOOL WINAPI DoStopSvc() } // If the service is running, dependencies must be stopped first. - StopDependentServices(); // Send a stop code to the service. - if (!ControlService( schService, SERVICE_CONTROL_STOP, @@ -1025,7 +1026,6 @@ BOOL WINAPI DoStopSvc() } // Wait for the service to stop. - while (ssp.dwCurrentState != SERVICE_STOPPED) { Sleep(ssp.dwWaitHint); diff --git a/CscdSvc/hook.c b/CscdSvc/hook.c index 528270c..a4b1a30 100644 --- a/CscdSvc/hook.c +++ b/CscdSvc/hook.c @@ -9,6 +9,7 @@ /* Pragmas */ #pragma warning(disable : 4996) // error C4996: 'GetVersion': was declared deprecated +#pragma warning(disable : 28159) // error C28159: 'GetVersion': was declared deprecated /* Includes */ #define VC_EXTRALEAN @@ -43,6 +44,10 @@ __declspec(dllexport) BOOL CALLBACK InstallUserHook() MessageBox(NULL, L"test", L"InstallUserHook called", MB_OK); OutputDebugString(L"InstallUserHook called\n"); + // Unregister before we do anything + // TODO: kill uxtheme kill uxtheme + UnregisterUserApiHookDelay(); + // Get the module g_hModule = GetModuleHandle(NULL);