public uint round_to_page(uint size) { Loader.SYSTEM_INFO sYSTEM_INFO = default(Loader.SYSTEM_INFO); Loader.GetSystemInfo(ref sYSTEM_INFO); return(sYSTEM_INFO.dwPageSize - size % sYSTEM_INFO.dwPageSize + size); }
private static extern void GetSystemInfo(ref Loader.SYSTEM_INFO lpSysInfo);