Ejemplo n.º 1
0
 private T Query <T>(SectionInformationClass info_class) where T : new()
 {
     using (var buffer = new SafeStructureInOutBuffer <T>())
     {
         int return_length = 0;
         NtSystemCalls.NtQuerySection(Handle, info_class, buffer, buffer.Length, out return_length).ToNtException();
         return(buffer.Result);
     }
 }
Ejemplo n.º 2
0
 public static extern NtStatus NtQuerySection(SafeKernelObjectHandle SectionHandle,
                                              SectionInformationClass SectionInformationClass,
                                              SafeBuffer SectionInformation,
                                              int SectionInformationLength,
                                              out int ResultLength);