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); } }
public static extern NtStatus NtQuerySection(SafeKernelObjectHandle SectionHandle, SectionInformationClass SectionInformationClass, SafeBuffer SectionInformation, int SectionInformationLength, out int ResultLength);