diff options
author | George Hazan <george.hazan@gmail.com> | 2023-11-24 19:03:52 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-11-24 19:27:56 +0300 |
commit | 955e8047a7e312f93fb2b0611df017ac8acb59ab (patch) | |
tree | 8f2caf1ad7e1042e80edd157b792cfe09d06990f /include/m_protoint.h | |
parent | 3a032d453eb46a6c191bebb2f49e4ca708085186 (diff) |
this return value is needed
Diffstat (limited to 'include/m_protoint.h')
-rw-r--r-- | include/m_protoint.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/m_protoint.h b/include/m_protoint.h index 8c169b8192..283a830c2c 100644 --- a/include/m_protoint.h +++ b/include/m_protoint.h @@ -50,7 +50,7 @@ EXTERN_C MIR_APP_DLL(void) ProtoWindowAdd(PROTO_INTERFACE *pThis, HWND hwnd); EXTERN_C MIR_APP_DLL(void) ProtoWindowRemove(PROTO_INTERFACE *pThis, HWND hwnd);
typedef int (MIR_CDECL PROTO_INTERFACE::*ProtoEventFunc)(WPARAM, LPARAM);
-EXTERN_C MIR_APP_DLL(void) ProtoHookEvent(PROTO_INTERFACE *pThis, const char* szName, ProtoEventFunc pFunc);
+EXTERN_C MIR_APP_DLL(HANDLE) ProtoHookEvent(PROTO_INTERFACE *pThis, const char* szName, ProtoEventFunc pFunc);
EXTERN_C MIR_APP_DLL(HANDLE) ProtoCreateHookableEvent(PROTO_INTERFACE *pThis, const char* szService);
typedef INT_PTR (MIR_CDECL PROTO_INTERFACE::*ProtoServiceFunc)(WPARAM, LPARAM);
@@ -309,8 +309,8 @@ template<class T> struct PROTO : public PROTO_INTERFACE return ::ProtoCreateHookableEvent(this, name); }
typedef int(MIR_CDECL T::*MyEventFunc)(WPARAM, LPARAM);
- __forceinline void HookProtoEvent(const char *name, MyEventFunc pFunc) {
- ::ProtoHookEvent(this, name, (ProtoEventFunc)pFunc); }
+ __forceinline HANDLE HookProtoEvent(const char *name, MyEventFunc pFunc) {
+ return ::ProtoHookEvent(this, name, (ProtoEventFunc)pFunc); }
typedef void(MIR_CDECL T::*MyThreadFunc)(void*);
__forceinline void ForkThread(MyThreadFunc pFunc, void *param = nullptr) {
|