chapter46, VirtualLock

This API locks a parts of memory so that it won’t become a swap. If information of the memory is written to drive, it becomes a problem if it contains key information.

I had thought that this was able to work only with virtual-memory allocated by “VirtualAlloc”. But, if the memory allocated by allocator of “std::allocator<T>”, it is allocated by the memory of “HeapAlloc”. This is no problem, namely so it was usable.

暗号通貨短編