Exemple #1
0
        public ReadOnlySpan <byte> GetResult(double timeout)
        {
            Span <byte> store  = Span <byte> .Empty;
            var         result = NtCore.GetRpcResult(Entry.Handle, Handle, timeout, store);

            return(result);
        }
Exemple #2
0
        public Task <byte[]> GetResultAsync(CancellationToken token = default)
        {
            NtEntry   handle = Entry.Handle;
            NtRpcCall call   = Handle;

            token.Register(() =>
            {
                NtCore.CancelRpcResult(handle, call);
            });
            return(Task.Run(() =>
            {
                return NtCore.GetRpcResult(handle, call, Span <byte> .Empty).ToArray();
            }));
        }
Exemple #3
0
        public ReadOnlySpan <byte> GetResult(Span <byte> store)
        {
            var result = NtCore.GetRpcResult(Entry.Handle, Handle, store);

            return(result);
        }