Asking for Win 7/Win 10 (BIOS/EFI). Ive been researching this and havent been able to find a way, heres the story:
In a program I am using bcdedit /set IncreaseUserVa 3872
to set the user-mode virtual address space to 3872MB, then I restart.
For a unit test I need to check that the change went through using C#. After much research I've tried the following methods:
System.AccessViolationException HResult=0x80004003 Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
I am running VS as admin in the admin account.Process.GetCurrentProcess().X
(theres a few memory properties) but those arent for the whole system.Can anyone help? either find the right reg key in BCD000000 or another way?
答案 0 :(得分:0)
想出来。
ComputerInfo myCompInfo = new ComputerInfo();
myCompInfo.TotalVirtualMemory();
BCDEdit不允许将虚拟地址空间设置为超过3GB。