Marshaling-related API Functions

The following functions are related to the process of remoting interface pointers and to marshaling in general.


HRESULT   CoMarshalInterface(pstm, riid, pUnk, dwDestContext, pvDestContext, mshlflags);
HRESULT   CoUnmarshalInterface(pstm, iid, ppv);
HRESULT   CoDisconnectObject(pUnkInterface, dwReserved);
HRESULT   CoReleaseMarshalData(pstm);
HRESULT    CoGetStandardMarshal(iid, pUnkObject, dwDestContext, pvDestContext, mshlflags, ppmarshal);

typedef enum tagMSHLFLAGS {
   MSHLFLAGS_NORMAL         = 0,
   MSHLFLAGS_TABLESTRONG   = 1,
   MSHLFLAGS_TABLEWEAK      = 2,
   } MSHLFLAGS;