The Usage of the PostThreadMessage Mechanism for Non-standard Inter-process Communication in the Windows Operating System

Abstract:

Windows opera-ng systems feature a suite of well-defined inter-process communica-on (IPC) mechanisms [1]. These mechanisms, including their usage, purpose, and the way they work in mul--process applica-ons, are clearly defined and well-known. However, there are some possibili-es to leverage the Windows API func-ons in ways not originally intended to expand their capabili-es and use them in a custom IPC solu-on. This ar-cle shows how to use a mechanism designed to handle a thread's message queue [2] as an intermediate medium for detec-ng other processes having the capability to communicate by this manner and then dynamically establish a connec-on between them.