Home | History | Annotate | Download | only in Windows

Lines Matching full:prot

200   DWORD prot = getProtection(Addr);
201 if (!prot)
204 if (prot == PAGE_EXECUTE || prot == PAGE_EXECUTE_READ) {
205 prot = PAGE_EXECUTE_READWRITE;
206 } else if (prot == PAGE_NOACCESS || prot == PAGE_READONLY) {
207 prot = PAGE_READWRITE;
212 return ::VirtualProtect(const_cast<LPVOID>(Addr), Size, prot, &oldProt)
217 DWORD prot = getProtection(Addr);
218 if (!prot)
221 if (prot == PAGE_NOACCESS) {
222 prot = PAGE_EXECUTE;
223 } else if (prot == PAGE_READONLY) {
224 prot = PAGE_EXECUTE_READ;
225 } else if (prot == PAGE_READWRITE) {
226 prot = PAGE_EXECUTE_READWRITE;
231 return ::VirtualProtect(const_cast<LPVOID>(Addr), Size, prot, &oldProt)