internal int ReadStruct(byte[] b, int Offset) { uint method = 0x358; this.TrEntry(method, new object[] { b, Offset }); IntPtr zero = IntPtr.Zero; int length = this.GetLength(); try { zero = Marshal.AllocCoTaskMem(length); try { Marshal.Copy(b, Offset, zero, length); this.lpiSDSubProps = (MQBase.structLPISDSUBPROPS)Marshal.PtrToStructure(zero, typeof(MQBase.structLPISDSUBPROPS)); } finally { Marshal.FreeCoTaskMem(zero); } } finally { base.TrExit(method); } return(Offset + this.GetLength()); }
public LpiSDSubProps() { base.TrConstructor("%Z% %W% %I% %E% %U%"); this.lpiSDSubProps = new MQBase.structLPISDSUBPROPS(); this.lpiSDSubProps.DestinationQMgr = new byte[0x30]; this.lpiSDSubProps.DestinationQName = new byte[0x30]; this.lpiSDSubProps.SubCorrelId = new byte[0x18]; this.lpiSDSubProps.PsPropertyStyle = 3; this.lpiSDSubProps.SubScope = 0; this.lpiSDSubProps.SubType = 1; }