I\'m looking for a method for storing the process memory, and restore it later at certain conditions.
...
Actually I\'ve read questions about it... It seems
The process memory does not represent the entire state of the process. The operating system will be holding objects on behalf of your process (e.g., file handles, synchronization objects, etc.) in places like non-paged pool that are outside the scope of your process.
I think you'd be better off refactoring until you can serialize and deserialize the relevant state with a manageable effort.