subj. Do u know such function? :confused:
Posted on 2001-03-06 16:54:00 by DLnC
VirtualProtect or VirtualProtectEx
Posted on 2001-03-06 19:32:00 by Iczelion
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?
Posted on 2001-03-07 09:02:00 by DLnC
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.
Posted on 2001-03-07 22:48:00 by tank