ReactOS 0.4.16-dev-1255-g6dd0406
CRegWatcher.cpp File Reference
#include "precomp.h"
#include "CRegWatcher.h"
#include <ime/indicml.h>
Include dependency graph for CRegWatcher.cpp:

Go to the source code of this file.

Typedefs

typedef HRESULT(WINAPIFN_TF_CreateLangProfileUtil) (ITfFnLangProfileUtil **)
 
typedef LONG(WINAPIFN_RegNotifyChangeKeyValue) (HKEY, BOOL, DWORD, HANDLE, BOOL)
 

Functions

LONG WINAPI DelayedRegNotifyChangeKeyValue (HKEY hKey, BOOL bWatchSubtree, DWORD dwNotifyFilter, HANDLE hEvent, BOOL fAsynchronous)
 

Typedef Documentation

◆ FN_RegNotifyChangeKeyValue

typedef LONG(WINAPI * FN_RegNotifyChangeKeyValue) (HKEY, BOOL, DWORD, HANDLE, BOOL)

Definition at line 88 of file CRegWatcher.cpp.

◆ FN_TF_CreateLangProfileUtil

typedef HRESULT(WINAPI * FN_TF_CreateLangProfileUtil) (ITfFnLangProfileUtil **)

Definition at line 38 of file CRegWatcher.cpp.

Function Documentation

◆ DelayedRegNotifyChangeKeyValue()

LONG WINAPI DelayedRegNotifyChangeKeyValue ( HKEY  hKey,
BOOL  bWatchSubtree,
DWORD  dwNotifyFilter,
HANDLE  hEvent,
BOOL  fAsynchronous 
)

Definition at line 91 of file CRegWatcher.cpp.

97{
98 static FN_RegNotifyChangeKeyValue s_fnRegNotifyChangeKeyValue = NULL;
99
100 if (!s_fnRegNotifyChangeKeyValue)
101 {
102 HINSTANCE hAdvApi32 = cicGetSystemModuleHandle(TEXT("advapi32.dll"), FALSE);
103 s_fnRegNotifyChangeKeyValue =
104 (FN_RegNotifyChangeKeyValue)GetProcAddress(hAdvApi32, "RegNotifyChangeKeyValue");
105 if (!s_fnRegNotifyChangeKeyValue)
107 }
108
109 return s_fnRegNotifyChangeKeyValue(hKey, bWatchSubtree, dwNotifyFilter, hEvent, fAsynchronous);
110}
LONG(WINAPI * FN_RegNotifyChangeKeyValue)(HKEY, BOOL, DWORD, HANDLE, BOOL)
Definition: CRegWatcher.cpp:88
EXTERN_C HINSTANCE cicGetSystemModuleHandle(_In_ LPCTSTR pszFileName, _In_ BOOL bSysWinDir)
Definition: cicbase.cpp:130
#define NULL
Definition: types.h:112
#define FALSE
Definition: types.h:117
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:102
#define GetProcAddress(x, y)
Definition: compat.h:753
FxAutoRegKey hKey
#define TEXT(s)
Definition: k32.h:28
static HANDLE hEvent
Definition: comm.c:54

Referenced by CRegWatcher::InitEvent().