LargeInteger (Structures)
Last changed: anonymous

.
Summary
TODO - Some Win32 api's still require us to split an int64 into low and high words.

C# Definition:

    [StructLayout(LayoutKind.Explicit)]
        private struct LargeInteger
        {
        [FieldOffset(0)]
            public int Low;
        [FieldOffset(4)]
            public int High;
        [FieldOffset(0)]
        public long QuadPart;

            // use only when QuadPart canot be passed
            public long ToInt64()
            {
                        return ((long)this.High << 32) | (uint)this.Low;
            }

        // just for demonstration
        public static LargeInteger FromInt64(long value)
        {
        return new LargeInteger
        {
            Low = (int)(value),
            High = (int)((value >> 32))
        };
        }

    }

VB Definition:

Structure LargeInteger
   Public TODO
End Structure

User-Defined Field Types:

None.

Notes:

None.

Documentation