IPSFactoryBuffer Interface
IPSFactoryBuffer is the interface through which proxies and stubs are created. It is used to create proxies and stubs that support IRpcProxyBuffer and IRpcStubBuffer respectively. Each proxy / stub .DLL must support IPSFactory interface on the class object accessible through its DllGetClassObject() entry point. As was described above, the registry is consulted under a key derived from the IID to be remoted in order to learn the proxy/stub class that handles the remoting of the indicated interface. The class object for this class is retrieved, asking for this interface. A proxy or a stub is then instantiated as appropriate.
interface IPSFactoryBuffer : IUnknown {
HRESULT CreateProxy(pUnkOuter, iid, ppProxy, ppv);
HRESULT CreateStub(iid, pUnkServer, ppStub);
};