1 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 // mayuipc.h - mayu inter process communication
11 # endif // __cplusplus
14 # define WM_MayuIPC_NAME _T("MayuIPC{46269F4D-D560-40f9-B38B-DB5E280FEF47}")
18 // enable or disable Mayu
19 MayuIPCCommand_Enable = 1,
22 BOOL MayuIPC_PostMessage(MayuIPCCommand i_wParam, LPARAM i_lParam);
23 BOOL MayuIPC_Enable(BOOL i_isEnabled);
25 # ifdef _MAYUIPC_H_DEFINE_FUNCTIONS
27 BOOL MayuIPC_PostMessage(MayuIPCCommand i_command, LPARAM i_lParam)
29 static UINT WM_MayuIPC;
34 WM_MayuIPC = RegisterWindowMessage(WM_MayuIPC_NAME);
41 hwnd = FindWindow(_T("mayuTasktray"), NULL);
46 PostMessage(hwnd, WM_MayuIPC, i_command, i_lParam);
50 BOOL MayuIPC_Enable(BOOL i_isEnabled)
52 return MayuIPC_PostMessage(MayuIPCCommand_Enable, i_isEnabled);
55 # endif // _MAYUIPC_H_DEFINE_FUNCTIONS
59 # endif // __cplusplus