OSDN Git Service

collect some files' permissions
[yamy/yamy.git] / hook.h
diff --git a/hook.h b/hook.h
index 6db9b3d..a7e3294 100644 (file)
--- a/hook.h
+++ b/hook.h
 #  define HOOK_PIPE_NAME \\r
  _T("\\\\.\\pipe\\GANAware\\mayu\\{4B22D464-7A4E-494b-982A-C2B2BBAAF9F3}") _T(VERSION)\r
 ///\r
-#ifdef USE_MAILSLOT\r
 #  define NOTIFY_MAILSLOT_NAME \\r
 _T("\\\\.\\mailslot\\GANAware\\mayu\\{330F7914-EB5B-49be-ACCE-D2B8DF585B32}") _T(VERSION)\r
 ///\r
-#endif // USE_MAILSLOT\r
 #  define WM_MAYU_MESSAGE_NAME _T("GANAware\\mayu\\WM_MAYU_MESSAGE")\r
 \r
 ///\r
@@ -37,8 +35,10 @@ struct Notify {
                Type_name,                                      /// NotifySetFocus\r
                Type_lockState,                         /// NotifyLockState\r
                Type_sync,                                      /// Notify\r
+               Type_threadAttach,                              /// NotifyThreadAttach\r
                Type_threadDetach,                              /// NotifyThreadDetach\r
-               Type_command,                           /// NotifyThreadDetach\r
+               Type_command64,                         /// NotifyCommand64\r
+               Type_command32,                         /// NotifyCommand32\r
                Type_show,                                      /// NotifyShow\r
                Type_log,                                       /// NotifyLog\r
        };\r
@@ -68,17 +68,32 @@ struct NotifyLockState : public Notify {
 \r
 \r
 ///\r
+struct NotifyThreadAttach : public Notify {\r
+       DWORD m_threadId;                               ///\r
+};\r
+\r
+\r
+///\r
 struct NotifyThreadDetach : public Notify {\r
        DWORD m_threadId;                               ///\r
 };\r
 \r
 \r
 ///\r
-struct NotifyCommand : public Notify {\r
+struct NotifyCommand32 : public Notify {\r
+       HWND m_hwnd;                                    ///\r
+       UINT m_message;                         ///\r
+       unsigned int m_wParam;                          ///\r
+       long m_lParam;                          ///\r
+};\r
+\r
+\r
+///\r
+struct NotifyCommand64 : public Notify {\r
        HWND m_hwnd;                                    ///\r
        UINT m_message;                         ///\r
-       WPARAM m_wParam;                                ///\r
-       LPARAM m_lParam;                                ///\r
+       unsigned __int64 m_wParam;                              ///\r
+       __int64 m_lParam;                               ///\r
 };\r
 \r
 \r
@@ -140,7 +155,7 @@ public:
 \r
 #  ifndef _HOOK_CPP\r
 extern DllImport HookData *g_hookData;\r
-extern DllImport int installMessageHook();\r
+extern DllImport int installMessageHook(DWORD i_hwndTaskTray);\r
 extern DllImport int uninstallMessageHook();\r
 extern DllImport int installKeyboardHook(INPUT_DETOUR i_keyboardDetour, Engine *i_engine, bool i_install);\r
 extern DllImport int installMouseHook(INPUT_DETOUR i_mouseDetour, Engine *i_engine, bool i_install);\r