MSHCTX

The MSHCTX enumeration constants specify the destination context, which is the process in which the unmarshaling is to be done. These flags are used in the IMarshal and IStdMarshalInfo interfaces and in the CoMarshalInterface and CoGetStandardMarshal functions.

typedef enum tagMSHCTX 
{ 
    MSHCTX_LOCAL               = 0, 
    MSHCTX_NOSHAREDMEM         = 1, 
    MSHCTX_DIFFERENTMACHINE    = 2, 
    MSHCTX_INPROC              = 3 
} MSHCTX; 
 

Elements

MSHCTX_LOCAL
The unmarshaling process is local and has shared memory access with the marshaling process.
MSHCTX_NOSHAREDMEM
The unmarshaling process does not have shared memory access with the marshaling process.
MSHCTX_DIFFERENTMACHINE
The unmarshaling process is on a different machine. The marshaling code cannot assume that a particular piece of application code is installed on that machine.
MSHCTX_INPROC
The unmarshaling will be done in another apartment in the same process.

QuickInfo

  Windows NT: Use version 3.1 and later.
  Windows: Use Windows 95 and later.
  Windows CE: Unsupported.
  Header: Declared in wtypes.h.

See Also

CoGetStandardMarshal, CoMarshalInterface, IMarshal, IStdMarshalInfo