by de_watcher · 7y ago · 0 comments
Just like a C interface is a small and nice abstraction over plain registers/stack call models of the past.
The advent of calling conventions like C was a huge step forward in 1970s. Before that, there was a mad zoo of passing parameters via random CPU registers and praying that you made no mistake and it would work without a crash.
COM is no different. IUnknown is just 3 methods (QueryInterface, AddRef, RemoveRef) over a plain C. It immediately brings an ability to use service model design in APIs.
As opposed to what you (do not) have on Linux: generating bindings for each scripting language you might want to support, and no standardized way of doing IPC/RPC.