private static void NotifySM(NtJob job, ushort code) { var data = new SmData(code, job.Handle.DangerousGetHandle()); RtlConnectToSm(IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, out var handle).ToNtException(); RtlSendMsgToSm(handle, ref data).ToNtException(); Console.WriteLine(data.u1); Console.WriteLine(data.u2); Console.WriteLine(data.msg); Console.WriteLine(data.cb); }
public async Task FetchSmData() { SmData?.Clear(); SmData = await SmDataProvider.GetData(); }
private extern static NtStatus RtlSendMsgToSm(IntPtr a, ref SmData b);