Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

LargeInteger (Structures)
 
.
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

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • alternate definitions?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions