示例#1
0
 internal static PageType UserQuery(UIntPtr startAddr,
                                    out UIntPtr regionAddr,
                                    out UIntPtr regionSize)
 {
     if (useAddressTranslation)
     {
         // TODO: Query NYI
         DebugStub.Break();
         regionAddr = UIntPtr.Zero;
         regionSize = UIntPtr.Zero;
         return(PageType.Unknown);
     }
     else
     {
         return(FlatPages.Query(startAddr, Thread.CurrentProcess,
                                out regionAddr, out regionSize));
     }
 }
示例#2
0
 internal static PageType KernelQuery(UIntPtr startAddr,
                                      out UIntPtr regionAddr,
                                      out UIntPtr regionSize)
 {
     if (useAddressTranslation)
     {
         // TODO: Query not yet implemented
         DebugStub.Break();
         regionAddr = UIntPtr.Zero;
         regionSize = UIntPtr.Zero;
         return(PageType.Unknown);
     }
     else
     {
         return(FlatPages.Query(startAddr, Process.kernelProcess, out regionAddr,
                                out regionSize));
     }
 }