Tartalomjegyzék

Interprocess communication in Windows

History of technologies

DDE

OLE

VBX

OLE 2

COM

ActiveX

COM+

Current technologies

COM is still the basic model for IPC and the basis for current ActiveX Windows technologies :

Microsoft .NET: can interact with COM+ (via COM-interop-assemblies) and provides wrappers to most commonly used COM controls. It hides most detail from component creation and therefore eases development. WCF (Windows Communication Foundation) for web services is part of .NET.

COM

Interfaces

IUnknown interface

IDispatch interface

IDual interface

Classes

Type library (TLB)

IDL

Reference counting

Registry usage

RegFree COM

Client and server

Server types

Server responsibilites

The server must:

  1. implement code for a class object through an implementation of either the IClassFactory or IClassFactory2 interface
  2. register its CLSID in the system registry on the machine on which it resides
  3. provide security: determine whether it will provide a pointer to one of its objects to a client

Implementation