MCPcopy Create free account
hub / github.com/NtQuery/Scylla / isPageExecutable

Method isPageExecutable

Scylla/ProcessAccessHelp.cpp:918–946  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

916}
917
918bool ProcessAccessHelp::isPageExecutable( DWORD Protect )
919{
920 if (Protect & PAGE_NOCACHE) Protect ^= PAGE_NOCACHE;
921 if (Protect & PAGE_GUARD) Protect ^= PAGE_GUARD;
922 if (Protect & PAGE_WRITECOMBINE) Protect ^= PAGE_WRITECOMBINE;
923
924 switch(Protect)
925 {
926 case PAGE_EXECUTE:
927 {
928 return true;
929 }
930 case PAGE_EXECUTE_READ:
931 {
932 return true;
933 }
934 case PAGE_EXECUTE_READWRITE:
935 {
936 return true;
937 }
938 case PAGE_EXECUTE_WRITECOPY:
939 {
940 return true;
941 }
942 default:
943 return false;
944 }
945
946}
947
948SIZE_T ProcessAccessHelp::getSizeOfImageProcessNative( HANDLE processHandle, DWORD_PTR moduleBase )
949{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected