Пример #1
0
        internal int ReadStruct(byte[] b, int Offset)
        {
            uint method = 0x49b;

            this.TrEntry(method, new object[] { b, Offset });
            IntPtr zero   = IntPtr.Zero;
            int    length = this.GetLength();

            try
            {
                zero = Marshal.AllocCoTaskMem(length);
                if (length > (b.Length - Offset))
                {
                    length = b.Length - Offset;
                }
                Marshal.Copy(b, Offset, zero, length);
                this.lpiNotifyDetails = (MQBase.structLPINOTIFYDETAILS)Marshal.PtrToStructure(zero, typeof(MQBase.structLPINOTIFYDETAILS));
            }
            finally
            {
                Marshal.FreeCoTaskMem(zero);
                base.TrExit(method);
            }
            return(Offset + this.GetLength());
        }
Пример #2
0
 public LpiNotifyDetails()
 {
     base.TrConstructor("%Z% %W% %I% %E% %U%");
     this.lpiNotifyDetails              = new MQBase.structLPINOTIFYDETAILS();
     this.lpiNotifyDetails.version      = 1;
     this.lpiNotifyDetails.reason       = 0;
     this.lpiNotifyDetails.connectionId = new byte[0x18];
 }
Пример #3
0
 public static extern void lpiSPINotify(int hconn, int options, ref MQBase.structLPINOTIFYDETAILS notifyDetails, out int compCode, out int reason);