NVDA Helper
In-process and lite high-speed utilities for NVDA
nvdaHelperRemote.h File Reference
#include <windows.h>

Go to the source code of this file.

Functions

BOOL injection_initialize ()
 Initializes nvdaHelperRemote, and allows it to inject in to processes.
 
BOOL injection_terminate ()
 Terminates nvdaHelperRemote, allowing it to uninject from any processes.
 
bool registerWinEventHook (WINEVENTPROC hookProc)
 Registers a callback function to be called with in future win events for this process.
 
bool unregisterWinEventHook (WINEVENTPROC hookProc)
 Unregisters a previously registered callback function for a win event for this process.
 
bool registerWindowsHook (int hookType, HOOKPROC hookProc)
 Registers a callback function to be called with in future windows hooks fired for this process.
 
bool unregisterWindowsHook (int hookType, HOOKPROC hookProc)
 Unregisters a previously registered callback function for a windows hook for this process.
 
void log_flushQueue ()
 

Variables

HANDLE inprocMgrThreadHandle
 

Function Documentation

◆ injection_initialize()

BOOL injection_initialize ( )

Initializes nvdaHelperRemote, and allows it to inject in to processes.

Initializes nvdaHelperRemote, and allows it to inject in to processes.

References dllHandle, nhAssert, outprocInitialized, outprocMgrThreadFunc(), outprocMgrThreadHandle, and outprocMgrThreadID.

Referenced by WinMain().

◆ injection_terminate()

BOOL injection_terminate ( )

Terminates nvdaHelperRemote, allowing it to uninject from any processes.

References outprocInitialized, outprocMgrThreadHandle, and outprocMgrThreadID.

Referenced by WinMain().

◆ registerWinEventHook()

bool registerWinEventHook ( WINEVENTPROC hookProc)

Registers a callback function to be called with in future win events for this process.

Parameters
procHookthe callback function which should be called
Returns
true if the hook was registered, false otherwise.

References inProcess_registeredWinEventHooks.

Referenced by ia2LiveRegions_inProcess_initialize(), IA2Support_inProcess_initialize(), AdobeAcrobatVBufBackend_t::renderThread_initialize(), GeckoVBufBackend_t::renderThread_initialize(), lotusNotesRichTextVBufBackend_t::renderThread_initialize(), VBufBackend_t::renderThread_initialize(), WebKitVBufBackend_t::renderThread_initialize(), and TSF_inProcess_initialize().

◆ unregisterWinEventHook()

bool unregisterWinEventHook ( WINEVENTPROC hookProc)

Unregisters a previously registered callback function for a win event for this process.

It may be possible for the winEvent hook to fire one more time after unregistration if the unregistration happens within a winEvent hook.

Parameters
hookProcthe callback function to be unregistered
Returns
True if it was unregistered, false otherwize.

References inProcess_registeredWinEventHooks, and nhAssert.

Referenced by ia2LiveRegions_inProcess_terminate(), IA2Support_inProcess_terminate(), AdobeAcrobatVBufBackend_t::renderThread_terminate(), GeckoVBufBackend_t::renderThread_terminate(), lotusNotesRichTextVBufBackend_t::renderThread_terminate(), VBufBackend_t::renderThread_terminate(), WebKitVBufBackend_t::renderThread_terminate(), and TSF_inProcess_terminate().

◆ registerWindowsHook()

bool registerWindowsHook ( int hookType,
HOOKPROC hookProc )

Registers a callback function to be called with in future windows hooks fired for this process.

Parameters
hookTypethe type of windows hook (WH_CALLWNDPROC, WH_GETMESSAGE)
procHookthe callback function which should be called
Returns
true if the hook was registered, false otherwise.

References inProcess_registeredCallWndProcWindowsHooks, and inProcess_registeredGetMessageWindowsHooks.

Referenced by IA2Support_inProcess_terminate(), IME_inProcess_initialize(), VBufBackend_t::initialize(), inputLangChange_inProcess_initialize(), typedCharacter_inProcess_initialize(), and winword_inProcess_initialize().

◆ unregisterWindowsHook()

bool unregisterWindowsHook ( int hookType,
HOOKPROC hookProc )

Unregisters a previously registered callback function for a windows hook for this process.

It may be possible for the windows hook to fire one more time after unregistration if the unregistration happens within a windows hook.

Parameters
hookTypethe type of windows hook
hookProcthe callback function to be unregistered
Returns
True if it was unregistered, false otherwize.

References inProcess_registeredCallWndProcWindowsHooks, inProcess_registeredGetMessageWindowsHooks, and nhAssert.

Referenced by IA2Support_inProcess_terminate(), IME_inProcess_terminate(), inputLangChange_inProcess_terminate(), VBufBackend_t::terminate(), typedCharacter_inProcess_terminate(), and winword_inProcess_terminate().

◆ log_flushQueue()

Variable Documentation

◆ inprocMgrThreadHandle