subj. Do u know such function? :confused:
VirtualProtect or VirtualProtectEx
yes, i know them, but... i thought, maybe there's some function to protect the whole thread in memory without saying "protect this and this segments", u just give this funct a handle of some program and it protects the whole memory of this thread. Is there some function like this?
What do you mean by memory "owned" by a thread? Threads, generally, share memory with all other threads in the same process (running instance or copy of a program). They are protected from threads in other processes (Those other threads need to use a stealth function like ReadProcessMemory or WriteProcessMemory.) There is such a thing as Thread Local Storage, but I haven't looked into what kind of protection, if any, it provides.