public static extern NtStatus NtQueryWnfStateNameInformation(
     ref ulong StateName,
     WnfStateNameInformation NameInfoClass,
     IntPtr ExplicitScope,
     SafeBuffer InfoBuffer,
     int InfoBufferSize
     );
Esempio n. 2
0
 private static NtResult <T> Query <T>(ulong state_name, WnfStateNameInformation info_class, bool throw_on_error) where T : struct
 {
     using (var buffer = new SafeStructureInOutBuffer <T>()) {
         return(NtSystemCalls.NtQueryWnfStateNameInformation(state_name,
                                                             info_class, IntPtr.Zero, buffer, buffer.Length).CreateResult(throw_on_error, () => buffer.Result));
     }
 }