1
0
mirror of https://github.com/valinet/ExplorerPatcher.git synced 2025-02-10 07:58:27 +01:00
ExplorerPatcher/ExplorerPatcher/SettingsMonitor.h

25 lines
546 B
C
Raw Normal View History

2021-10-01 01:26:10 +03:00
#ifndef _H_SETTINGSMONITOR_H_
#define _H_SETTINGSMONITOR_H_
#include <Windows.h>
#include <Shlwapi.h>
#pragma comment(lib, "Shlwapi.lib")
#include <stdio.h>
2021-10-01 01:26:10 +03:00
2021-10-15 13:50:52 +03:00
typedef struct _Setting
{
HKEY origin;
wchar_t name[MAX_PATH];
HKEY hKey;
HANDLE hEvent;
2021-10-21 09:01:59 +03:00
void(__stdcall *callback)(void*);
2021-10-15 13:50:52 +03:00
void* data;
} Setting;
2021-10-01 01:26:10 +03:00
typedef struct _SettingsChangeParameters
{
2021-10-15 13:50:52 +03:00
Setting* settings;
DWORD size;
HANDLE hThread;
2021-10-01 01:26:10 +03:00
} SettingsChangeParameters;
2021-10-21 09:01:59 +03:00
DWORD WINAPI MonitorSettings(SettingsChangeParameters*);
2021-10-01 01:26:10 +03:00
#endif