I am using boost’s ipc library for saving complex object, include images, in shared memory, used by several processes. Let’s call this object MyImage. The shared memory is a circular buffer saving several MyImage objects at a time. In my code there are two (or more) processes writing to a segment in a shared memory, ..
I’m developing a .NET program which suppose to be communicate with other existing program in same machine using Shared Memory (Memory Mapped Files), The existing program itself include a native dll and .NET wrapper / bridge dll which I could consume to communicate with the other program. The thing is the other program is very ..
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; ..
I am building a .NET Core Worker Service that requires a GUI application for configuration. It must be able to run on both Windows and Linux. There also may be a situation in which the GUI and Worker Service are not on the same machine. I’ve done fairly extensive research and haven’t found any documents ..
I am working with hooks rn (WINAPI). And some hooks need to be initialized in a DLL. Inside the DLL, there is the callback function which is called depending on the hook installed. But the callback is called on the other process so I don’t have anything in my main app to react to it… ..
If I understand correctly the function SignalObjectAndWait in Windows could notify another process and wait in a single context switch, effectively replacing the current running process on cpu with a process waiting for that signal. From my search I couldn’t find an equivalent on Linux that would do the transfer in a single context switch. ..
I tried using namedpipes it just sends and receives but, My goal is to pass the elements from C++ and get that Elements at runtime in C# and process them. Like, Get n inputs in c++ and process that n elements in C#. Eg: I am entering 5 inputs, say 1,2,3,4,5 in C++ where c# ..
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 ..
This might be a very basic question but it confuses me. I created two win32 server c++ projects both will do similar task like listen for IPC connection from client. both will listen in deferent port numbers like 1000 and 2000 I’m able to connect first started application like 1000 or 2000 but not both, ..
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 ..