internal MQCONN() { base.TrConstructor("%Z% %W% %I% %E% %U%"); this.mqconn = new structMQCONN(); this.mqconn.QMgrName = new byte[0x30]; this.mqconn.ApplName = new byte[0x1c]; this.mqconn.AcctToken = new byte[0x20]; }
internal int ReadStruct(byte[] b, int Offset) { uint method = 0x6f; this.TrEntry(method, new object[] { b, Offset }); IntPtr zero = IntPtr.Zero; int length = this.GetLength(); int result = 0; try { zero = Marshal.AllocCoTaskMem(length); Marshal.Copy(b, Offset, zero, length); this.mqconn = (structMQCONN)Marshal.PtrToStructure(zero, typeof(structMQCONN)); Marshal.FreeCoTaskMem(zero); result = Offset + length; } finally { base.TrExit(method, result); } return(result); }