基于这一问题,。 如何在C#上宣布LARGE_INTEERT,answer :
[StructLayout(LayoutKind.Absolute, Size=8)]
struct LARGE_INTEGER
{
[FieldOffset(0)]public Int64 QuadPart;
[FieldOffset(0)]public UInt32 LowPart;
[FieldOffset(4)]public Int32 HighPart;
}
下面的假设是:宣布RGULAE_INTE
正确?
[StructLayout(LayoutKind.Explicit, Size = 8)]
public struct ULARGE_INTEGER
{
[FieldOffset(0)] public UInt64 QuadPart;
[FieldOffset(0)] public UInt32 LowPart;
[FieldOffset(4)] public UInt32 HighPart;
}