0x323 Windows Interface

Process

Windows Process

Windows do not have fork, use spawn (fork + exec) or CreateProcess instead

CreateProcess

Windows Thread

Unlike Linux, Thread is implemented at OS level in Window and SunOS

IPC

Windows has following IPC mechanism according to this page

Clipboard, COM, Data Copy, DDE, File Mapping, MailSlot, Pipes, Windows Socket, RPC

COM IPC

In my personal understanding, COM is doing following things equivalent in linux

  • fork a process
  • open pipe to share message binary memory
  • construct object over binary (COM interface defines how to construct obj) and manage its life
  • close the process

WinRT IPC

wrapper of COM