Home
last modified time | relevance | path

Searched refs:Protect (Results 1 – 25 of 52) sorted by relevance

123

/reactos/ntoskrnl/mm/
H A Dregion.c60 NewRegion1->Protect = NewProtect; in MmSplitRegion()
72 InitialRegion->Protect, NewType, NewProtect); in MmSplitRegion()
81 NewRegion2->Protect = InitialRegion->Protect; in MmSplitRegion()
165 CurrentRegion->Protect != NewProtect) in MmAlterRegion()
168 CurrentRegion->Type, CurrentRegion->Protect, in MmAlterRegion()
190 CurrentRegion->Protect != NewProtect) in MmAlterRegion()
193 CurrentRegion->Type, CurrentRegion->Protect, in MmAlterRegion()
209 CurrentRegion->Protect == NewRegion->Protect) in MmAlterRegion()
226 CurrentRegion->Protect == NewRegion->Protect) in MmAlterRegion()
240 ULONG Protect) in MmInitializeRegion() argument
[all …]
H A Dmarea.c161 IN ULONG Protect
169 ULONG Protect) in MmInsertMemoryArea() argument
174 marea->VadNode.u.VadFlags.Protection = MiMakeProtectionMask(Protect); in MmInsertMemoryArea()
414 ULONG Protect, in MmCreateMemoryArea() argument
472 MmInsertMemoryArea(AddressSpace, MemoryArea, Protect); in MmCreateMemoryArea()
510 MmInsertMemoryArea(AddressSpace, MemoryArea, Protect); in MmCreateMemoryArea()
H A Dsection.c1596 if (Region->Protect & PAGE_GUARD) in MmNotPresentFaultSectionView()
1727 (Region->Protect == PAGE_READWRITE || Region->Protect == PAGE_EXECUTE_READWRITE)) in MmNotPresentFaultSectionView()
1976 NewProtect = Region->Protect; in MmAccessFaultSectionView()
2072 ULONG Protect, in MmProtectSectionView() argument
2089 Region->Protect != Protect) in MmProtectSectionView()
2094 *OldProtect = Region->Protect; in MmProtectSectionView()
2136 Info->Protect = Region->Protect; in MmQuerySectionView()
3373 ULONG Protect, in MmMapViewOfSegment() argument
4010 IN ULONG Protect) in MmMapViewOfSection() argument
4036 if (!Protect || Protect & ~PAGE_FLAGS_VALID_FOR_SECTION) in MmMapViewOfSection()
[all …]
H A Drmap.c197 MmCreateVirtualMapping(Process, Address, Region->Protect, Page); in MmPageOutPhysicalAddress()
237 MmCreateVirtualMapping(Process, Address, Region->Protect, Page); in MmPageOutPhysicalAddress()
/reactos/dll/win32/kernel32/client/file/
H A Dfilemap.c172 ULONG Protect; in MapViewOfFileEx() local
186 Protect = PAGE_WRITECOPY; in MapViewOfFileEx()
190 Protect = (dwDesiredAccess & FILE_MAP_EXECUTE) ? in MapViewOfFileEx()
195 Protect = (dwDesiredAccess & FILE_MAP_EXECUTE) ? in MapViewOfFileEx()
200 Protect = PAGE_NOACCESS; in MapViewOfFileEx()
213 Protect); in MapViewOfFileEx()
/reactos/modules/rostests/winetests/kernel32/
H A Dvirtual.c176 ok(info.Protect == 0, "%x != PAGE_NOACCESS\n", info.Protect); in test_VirtualAllocEx()
197 ok(info.Protect == PAGE_NOACCESS, "%x != PAGE_NOACCESS\n", info.Protect); in test_VirtualAllocEx()
259 ok(info.Protect == 0, "%x != PAGE_NOACCESS\n", info.Protect); in test_VirtualAlloc()
280 ok(info.Protect == PAGE_NOACCESS, "%x != PAGE_NOACCESS\n", info.Protect); in test_VirtualAlloc()
302 ok(info.Protect == PAGE_READWRITE, "%x != PAGE_READWRITE\n", info.Protect); in test_VirtualAlloc()
313 ok(info.Protect == PAGE_READWRITE, "%x != PAGE_READWRITE\n", info.Protect); in test_VirtualAlloc()
322 ok(info.Protect == 0, "%x != 0\n", info.Protect); in test_VirtualAlloc()
654 ok( info.Protect == PAGE_READONLY, "%x != PAGE_READONLY\n", info.Protect ); in test_MapViewOfFile()
692 ok( info.Protect == PAGE_READWRITE, "%x != PAGE_READWRITE\n", info.Protect ); in test_MapViewOfFile()
1697 ok( info.Protect == PAGE_READONLY, "wrong Protect 0x%x\n", info.Protect ); in test_write_watch()
[all …]
H A Dloader.c758 … ok(info.Protect == PAGE_EXECUTE_WRITECOPY, "%d: %x != PAGE_EXECUTE_WRITECOPY\n", i, info.Protect); in test_Loader()
760 ok(info.Protect == PAGE_READONLY, "%d: %x != PAGE_READONLY\n", i, info.Protect); in test_Loader()
782 ok(info.Protect == PAGE_NOACCESS, "%d: %x != PAGE_NOACCESS\n", i, info.Protect); in test_Loader()
786 … ok(info.Protect == PAGE_EXECUTE_WRITECOPY, "%d: %x != PAGE_EXECUTE_WRITECOPY\n", i, info.Protect); in test_Loader()
793 ok(info.Protect == PAGE_READONLY, "%d: %x != PAGE_READONLY\n", i, info.Protect); in test_Loader()
825 ok(info.Protect == PAGE_READONLY, "%d: %x != PAGE_READONLY\n", i, info.Protect); in test_Loader()
1581 ok(info.Protect == scn_page_access, "got %#x != expected %#x\n", info.Protect, scn_page_access); in test_image_mapping()
1600 ok(info.Protect == scn_page_access, "got %#x != expected %#x\n", info.Protect, scn_page_access); in test_image_mapping()
1618 ok(info.Protect == scn_page_access, "got %#x != expected %#x\n", info.Protect, scn_page_access); in test_image_mapping()
1722 … ok(info.Protect == PAGE_NOACCESS, "%d: got %#x != expected PAGE_NOACCESS\n", i, info.Protect); in test_VirtualProtect()
[all …]
/reactos/sdk/lib/crt/startup/
H A Dpseudo-reloc.c209 if (b.Protect != PAGE_EXECUTE_READWRITE && b.Protect != PAGE_READWRITE) in mark_section_writable()
280 if (b.Protect != PAGE_EXECUTE_READWRITE && b.Protect != PAGE_READWRITE) in __write_memory()
290 if (call_unprotect && b.Protect != PAGE_EXECUTE_READWRITE && b.Protect != PAGE_READWRITE) in __write_memory()
/reactos/modules/rostests/kmtests/ntos_mm/
H A DZwAllocateVirtualMemory.c26 ULONG Protect; member
32 …H_FREE(ProcessHandle, BaseAddress, ZeroBits, RegionSize, AllocationType, Protect, RetStatus, FreeS… argument
35 …teVirtualMemory(ProcessHandle, &BaseAddress, ZeroBits, &RegionSize, AllocationType, Protect); \
357 …ory(NtCurrentProcess(), &Base, 0, &Context->RegionSize, Context->AllocationType, Context->Protect); in SystemProcessTestWorker()
364 …ory(NtCurrentProcess(), &Base, 0, &Context->RegionSize, Context->AllocationType, Context->Protect); in SystemProcessTestWorker()
401 …stContext(PTEST_CONTEXT Ctx, SHORT ThreadId, ULONG RegionSize, ULONG AllocationType, ULONG Protect) in KmtInitTestContext() argument
406 Ctx->Protect = Protect; in KmtInitTestContext()
/reactos/ntoskrnl/mm/i386/
H A Dpage.c766 ULONG Protect; in MmGetPageProtect() local
804 Protect = PAGE_NOACCESS; in MmGetPageProtect()
809 Protect = PAGE_WRITECOPY; in MmGetPageProtect()
811 Protect = PAGE_READWRITE; in MmGetPageProtect()
813 Protect = PAGE_READONLY; in MmGetPageProtect()
817 Protect <<= 4; in MmGetPageProtect()
820 Protect |= PAGE_NOCACHE; in MmGetPageProtect()
822 Protect |= PAGE_WRITETHROUGH; in MmGetPageProtect()
828 return(Protect); in MmGetPageProtect()
H A Dpagepae.c1381 ULONG Protect; in MmGetPageProtect() local
1393 Protect = PAGE_NOACCESS; in MmGetPageProtect()
1399 Protect = PAGE_READWRITE; in MmGetPageProtect()
1403 Protect = PAGE_EXECUTE_READ; in MmGetPageProtect()
1407 Protect |= PAGE_NOCACHE; in MmGetPageProtect()
1411 Protect |= PAGE_WRITETHROUGH; in MmGetPageProtect()
1415 Protect |= PAGE_SYSTEM; in MmGetPageProtect()
1419 return(Protect); in MmGetPageProtect()
/reactos/ntoskrnl/mm/ARM3/
H A Dvirtual.c1362 ULONG Protect; in MiGetPageProtection() local
1445 return Protect; in MiGetPageProtection()
1487 ULONG State = MEM_RESERVE, Protect = 0; in MiQueryAddressState() local
1582 ASSERT(Protect == 0); in MiQueryAddressState()
1655 *ReturnedProtect = Protect; in MiQueryAddressState()
1696 MemoryInfo.Protect = PAGE_READONLY; in MiQueryMemoryBasicInformation()
1862 MemoryInfo.Protect = PAGE_NOACCESS; in MiQueryMemoryBasicInformation()
4497 IN ULONG Protect) in NtAllocateVirtualMemory() argument
4591 if (Protect != PAGE_READWRITE) in NtAllocateVirtualMemory()
5050 if ((Protect & PAGE_WRITECOPY) || (Protect & PAGE_EXECUTE_WRITECOPY)) in NtAllocateVirtualMemory()
[all …]
H A Dsection.c140 MiMakeProtectionMask(IN ULONG Protect) in MiMakeProtectionMask() argument
151 Mask1 = Protect & 0xF; in MiMakeProtectionMask()
152 Mask2 = (Protect >> 4) & 0xF; in MiMakeProtectionMask()
172 if (Protect & PAGE_GUARD) in MiMakeProtectionMask()
187 if (Protect & PAGE_NOCACHE) in MiMakeProtectionMask()
190 ASSERT((Protect & PAGE_GUARD) == 0); in MiMakeProtectionMask()
204 if (Protect & PAGE_WRITECOMBINE) in MiMakeProtectionMask()
2538 IN ULONG Protect) in MmMapViewOfArm3Section() argument
2628 if (Protect & PAGE_WRITECOMBINE) in MmMapViewOfArm3Section()
3264 IN ULONG Protect) in NtMapViewOfSection() argument
[all …]
/reactos/ntoskrnl/kdbg/
H A Dkdb.c162 ULONG Protect; in KdbpOverwriteInstruction() local
167 Protect = MmGetPageProtect(Process, (PVOID)PAGE_ROUND_DOWN(Address)); in KdbpOverwriteInstruction()
170 if (Protect & PAGE_NOACCESS) in KdbpOverwriteInstruction()
182 if (Protect & (PAGE_READONLY|PAGE_EXECUTE|PAGE_EXECUTE_READ)) in KdbpOverwriteInstruction()
185 … (Protect & ~(PAGE_READONLY|PAGE_EXECUTE|PAGE_EXECUTE_READ)) | PAGE_READWRITE); in KdbpOverwriteInstruction()
194 if (Protect & (PAGE_READONLY|PAGE_EXECUTE|PAGE_EXECUTE_READ)) in KdbpOverwriteInstruction()
196 MmSetPageProtect(Process, (PVOID)PAGE_ROUND_DOWN(Address), Protect); in KdbpOverwriteInstruction()
213 if (Protect & (PAGE_READONLY|PAGE_EXECUTE|PAGE_EXECUTE_READ)) in KdbpOverwriteInstruction()
215 MmSetPageProtect(Process, (PVOID)PAGE_ROUND_DOWN(Address), Protect); in KdbpOverwriteInstruction()
/reactos/ntoskrnl/cache/section/
H A Dnewmm.h257 ULONG Protect,
263 #define MiMapViewOfSegment(AddressSpace,Segment,BaseAddress,ViewSize,Protect,ViewOffset,AllocationT… argument
264 …_MiMapViewOfSegment(AddressSpace,Segment,BaseAddress,ViewSize,Protect,ViewOffset,AllocationType,__…
H A Ddata.c543 ULONG Protect, in _MiMapViewOfSegment() argument
556 Protect, in _MiMapViewOfSegment()
597 Protect); in _MiMapViewOfSegment()
H A Dfault.c359 if (Region->Protect == PAGE_READWRITE || in MiCowCacheSectionPage()
360 Region->Protect == PAGE_EXECUTE_READWRITE) in MiCowCacheSectionPage()
/reactos/modules/rostests/winetests/ntdll/
H A Dinfo.c1878 …ok((info.Protect & ~PAGE_NOCACHE) == PAGE_READWRITE, "addr.Protect is not PAGE_READWRITE, but 0x%x… in test_mapprotection()
1917 …ok (mbi.Protect == PAGE_READONLY, "mbi.Protect is 0x%x, expected 0x%x\n", mbi.Protect, PAGE_READON… in test_queryvirtualmemory()
1928 …ok (mbi.Protect == PAGE_EXECUTE_READ, "mbi.Protect is 0x%x, expected 0x%x\n", mbi.Protect, PAGE_EX… in test_queryvirtualmemory()
1937 ok (mbi.Protect == PAGE_READWRITE || mbi.Protect == PAGE_EXECUTE_READWRITE, in test_queryvirtualmemory()
1938 "mbi.Protect is 0x%x\n", mbi.Protect); in test_queryvirtualmemory()
1946 …ok (mbi.Protect == PAGE_READWRITE, "mbi.Protect is 0x%x, expected 0x%x\n", mbi.Protect, PAGE_READW… in test_queryvirtualmemory()
1956 if (mbi.Protect != PAGE_READONLY) in test_queryvirtualmemory()
1957 …todo_wine ok( mbi.Protect == PAGE_READONLY, "mbi.Protect is 0x%x, expected 0x%X\n", mbi.Protect, P… in test_queryvirtualmemory()
1966 ok (mbi.Protect == PAGE_READWRITE || mbi.Protect == PAGE_WRITECOPY, in test_queryvirtualmemory()
1967 "mbi.Protect is 0x%x\n", mbi.Protect); in test_queryvirtualmemory()
[all …]
/reactos/modules/rostests/apitests/ntdll/
H A DStackOverflow.c52 ok_long(MemoryBasicInfo.Protect, PAGE_READWRITE); in infinite_recursive()
124 ok_long(MemoryBasicInfo.Protect, PAGE_READWRITE); in START_TEST()
/reactos/sdk/include/ndk/
H A Dmmfuncs.h58 _In_ ULONG Protect
101 _In_ ULONG Protect
341 _In_ ULONG Protect
/reactos/modules/rosapps/lib/vfdlib/
H A Dvfdlib.rc80 CONTROL "&Write Protect",IDC_OPEN_PROTECTED,"Button",
105 CONTROL "&Write Protect",IDC_WRITE_PROTECTED,"Button",
H A Dvfdmsg_lib.mc74 &Write Protect%0
/reactos/ntoskrnl/cache/
H A Dpinsup.c142 ULONG Protect, in CcpAllocateSection() argument
157 Protect, in CcpAllocateSection()
/reactos/win32ss/drivers/videoprt/
H A Dvideoprt.h249 IN ULONG Protect,
/reactos/ntoskrnl/include/internal/
H A Dmm.h472 ULONG Protect; member
1361 ULONG Protect
1455 ULONG Protect,

123