ReactOS 0.4.15-dev-8390-g075894b
CRegWatcher.cpp File Reference
#include "precomp.h"
#include "CRegWatcher.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 87 of file CRegWatcher.cpp.

◆ FN_TF_CreateLangProfileUtil

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

Definition at line 37 of file CRegWatcher.cpp.

Function Documentation

◆ DelayedRegNotifyChangeKeyValue()

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

Definition at line 90 of file CRegWatcher.cpp.

96{
97 static FN_RegNotifyChangeKeyValue s_fnRegNotifyChangeKeyValue = NULL;
98
99 if (!s_fnRegNotifyChangeKeyValue)
100 {
101 HINSTANCE hAdvApi32 = cicGetSystemModuleHandle(TEXT("advapi32.dll"), FALSE);
102 s_fnRegNotifyChangeKeyValue =
103 (FN_RegNotifyChangeKeyValue)GetProcAddress(hAdvApi32, "RegNotifyChangeKeyValue");
104 if (!s_fnRegNotifyChangeKeyValue)
106 }
107
108 return s_fnRegNotifyChangeKeyValue(hKey, bWatchSubtree, dwNotifyFilter, hEvent, fAsynchronous);
109}
LONG(WINAPI * FN_RegNotifyChangeKeyValue)(HKEY, BOOL, DWORD, HANDLE, BOOL)
Definition: CRegWatcher.cpp:87
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:26
static HANDLE hEvent
Definition: comm.c:54

Referenced by CRegWatcher::InitEvent().