Ejemplo n.º 1
0
        internal int ReadStruct(byte[] b, int Offset)
        {
            uint method = 0x1f3;

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

            try
            {
                zero = Marshal.AllocCoTaskMem(length);
                Marshal.Copy(b, Offset, zero, length);
                this.notify = (structMQNOTIFICATION)Marshal.PtrToStructure(zero, typeof(structMQNOTIFICATION));
                Marshal.FreeCoTaskMem(zero);
            }
            finally
            {
                base.TrExit(method, length);
            }
            return(length);
        }
Ejemplo n.º 2
0
 internal MQNOTIFICATION()
 {
     base.TrConstructor("%Z% %W%  %I% %E% %U%");
     this.notify         = new structMQNOTIFICATION();
     this.notify.version = 1;
 }