Skip to content

Commit

Permalink
my adidas
Browse files Browse the repository at this point in the history
  • Loading branch information
freedom7341 committed Jul 26, 2024
1 parent f63cb16 commit 9f13165
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CscdCfg/cfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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,
Expand All @@ -1025,7 +1026,6 @@ BOOL WINAPI DoStopSvc()
}

// Wait for the service to stop.

while (ssp.dwCurrentState != SERVICE_STOPPED)
{
Sleep(ssp.dwWaitHint);
Expand Down
5 changes: 5 additions & 0 deletions CscdSvc/hook.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 9f13165

Please sign in to comment.