Category : ipc

I am trying to send an HWND with the WM_COPYDATA IPC method. So far when sending a string LPCTSTR it works. LPCTSTR str = L"Test"; COPYDATASTRUCT cds; cds.dwData = 20; cds.cbData = sizeof(LPCTSTR); cds.lpData = (PVOID)str; LRESULT l = SendMessage(myhWnd, WM_COPYDATA, (WPARAM)nullptr, (LPARAM)&cds); But when using the HWND the message doesn’t even arrive… COPYDATASTRUCT cds; ..

Read more

I have written a simple test code that injects my hooking dll to some of Windows applications(explorer.exe, notepad.exe etc.) and in the target processes, I hooked Win32 API functions like CopyFileEx, CreateFile using EasyHook library. In my hooking function for instance Hooked_CopyFileExW, I need to send an event message (contains source file path, pid of ..

Read more

In this code, I am trying to ipc with signals. Parent process will send SIGUSR1 signal to his children and waits for a SIGUSR1 signal for conformation of the signal arrive at the child end. So I have; Parent –> SIGUSR1 –> CHILD[i] Parent <— SIGUSR1 <— CHILD[i] this kind of communication between parent child ..

Read more