Embedded browser interface.
More...
#include <ui_hook_interface.h>
Embedded browser interface.
Definition at line 44 of file ui_hook_interface.h.
◆ MonitorWnd()
| virtual SDKError IUIHooker::MonitorWnd |
( |
const zchar_t * | classname, |
|
|
bool | bAdd = true ) |
|
pure virtual |
Add or remove the windows to be hooked.
- Parameters
-
| classname | Get the value of the windows class name to be hooked or unhooked via windows API GetClassName(). |
| bAdd | true indicates to add. |
- Returns
- If the function succeeds, the return value is SDKERR_SUCCESS. Otherwise, this function returns an error.
◆ MonitorWndMessage()
| virtual SDKError IUIHooker::MonitorWndMessage |
( |
unsigned int | wndmsgid, |
|
|
bool | bAdd = true ) |
|
pure virtual |
Add or remove the windows message to be hooked.
- Parameters
-
| wndmsgid | Specify the windows message ID, such as WM_CREATE. |
| bAdd | true indicates to add. |
- Returns
- If the function succeeds, the return value is SDKERR_SUCCESS. Otherwise, this function returns an error.
◆ SetEvent()
Set UI Hooker callback event handler.
- Parameters
-
- Returns
- If the function succeeds, the return value is SDKERR_SUCCESS. Otherwise, this function returns an error.
◆ Start()
Starts hooking.
- Returns
- If the function succeeds, the return value is SDKERR_SUCCESS. Otherwise, this function returns an error.
◆ Stop()
Stops hooking.
- Returns
- If the function succeeds, the return value is SDKERR_SUCCESS. Otherwise, this function returns an error.
- Note
- Calling the function does not clean up the hook list in the SDK. Remove the message or windows that you do not want to hook next time via MonitorWndMessage() or MonitorWnd().