public static uint getLowPart(uint size) { nativeStructs.SYSTEM_INFO info = new nativeStructs.SYSTEM_INFO(); nativeStructs.GetSystemInfo(ref info); return((info.dwPageSize - size % info.dwPageSize) + size); }
public static extern void GetSystemInfo(ref nativeStructs.SYSTEM_INFO lpSysInfo);