Beispiel #1
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();
            }));
        }
Beispiel #2
0
 private static extern NtBool Native_NT_SetDefaultEntryValue(NtEntry entry, NtValue *default_value);
Beispiel #3
0
 public void NT_CancelRpcResult(NtEntry entry, NtRpcCall call)
 {
     Native_NT_CancelRpcResult(entry, call);
 }
Beispiel #4
0
 public byte *NT_GetRpcResultTimeout(NtEntry entry, NtRpcCall call, UIntPtr *result_len, double timeout, NtBool *timed_out)
 {
     return(Native_NT_GetRpcResultTimeout(entry, call, result_len, timeout, timed_out));
 }
Beispiel #5
0
 public byte *NT_GetRpcResult(NtEntry entry, NtRpcCall call, UIntPtr *result_len)
 {
     return(Native_NT_GetRpcResult(entry, call, result_len));
 }
Beispiel #6
0
 public NtRpcCall NT_CallRpc(NtEntry entry, byte * @params, UIntPtr params_len)
 {
     return(Native_NT_CallRpc(entry, @params, params_len));
 }
Beispiel #7
0
 public void NT_PostRpcResponse(NtEntry entry, NtRpcCall call, byte *result, UIntPtr result_len)
 {
     Native_NT_PostRpcResponse(entry, call, result, result_len);
 }
Beispiel #8
0
 public void NT_CreatePolledRpc(NtEntry entry, byte *def, UIntPtr def_len, NtRpcCallPoller poller)
 {
     Native_NT_CreatePolledRpc(entry, def, def_len, poller);
 }
Beispiel #9
0
 public void NT_SetEntryFlags(NtEntry entry, uint flags)
 {
     Native_NT_SetEntryFlags(entry, flags);
 }
Beispiel #10
0
 private static extern void Native_NT_SetEntryFlags(NtEntry entry, uint flags);
Beispiel #11
0
 public void NT_SetEntryTypeValue(NtEntry entry, NtValue *value)
 {
     Native_NT_SetEntryTypeValue(entry, value);
 }
Beispiel #12
0
 private static extern void Native_NT_SetEntryTypeValue(NtEntry entry, NtValue *value);
Beispiel #13
0
 public NtBool NT_SetEntryValue(NtEntry entry, NtValue *value)
 {
     return(Native_NT_SetEntryValue(entry, value));
 }
Beispiel #14
0
 private static extern NtBool Native_NT_SetEntryValue(NtEntry entry, NtValue *value);
Beispiel #15
0
 public NtBool NT_SetDefaultEntryValue(NtEntry entry, NtValue *default_value)
 {
     return(Native_NT_SetDefaultEntryValue(entry, default_value));
 }
Beispiel #16
0
 public NtEntryListener NT_AddPolledEntryListenerSingle(NtEntryListenerPoller poller, NtEntry entry, uint flags)
 {
     return(Native_NT_AddPolledEntryListenerSingle(poller, entry, flags));
 }
Beispiel #17
0
 private static extern void Native_NT_CreatePolledRpc(NtEntry entry, byte *def, UIntPtr def_len, NtRpcCallPoller poller);
Beispiel #18
0
 private static extern uint Native_NT_GetEntryFlags(NtEntry entry);
Beispiel #19
0
 private static extern void Native_NT_PostRpcResponse(NtEntry entry, NtRpcCall call, byte *result, UIntPtr result_len);
Beispiel #20
0
 public uint NT_GetEntryFlags(NtEntry entry)
 {
     return(Native_NT_GetEntryFlags(entry));
 }
Beispiel #21
0
 private static extern NtRpcCall Native_NT_CallRpc(NtEntry entry, byte * @params, UIntPtr params_len);
Beispiel #22
0
 private static extern void Native_NT_DeleteEntry(NtEntry entry);
Beispiel #23
0
 private static extern byte *Native_NT_GetRpcResult(NtEntry entry, NtRpcCall call, UIntPtr *result_len);
Beispiel #24
0
 public void NT_DeleteEntry(NtEntry entry)
 {
     Native_NT_DeleteEntry(entry);
 }
Beispiel #25
0
 private static extern byte *Native_NT_GetRpcResultTimeout(NtEntry entry, NtRpcCall call, UIntPtr *result_len, double timeout, NtBool *timed_out);
Beispiel #26
0
 private static extern NtBool Native_NT_GetEntryInfoHandle(NtEntry entry, NtEntryInfo *info);
Beispiel #27
0
 private static extern void Native_NT_CancelRpcResult(NtEntry entry, NtRpcCall call);
Beispiel #28
0
 public NtBool NT_GetEntryInfoHandle(NtEntry entry, NtEntryInfo *info)
 {
     return(Native_NT_GetEntryInfoHandle(entry, info));
 }
Beispiel #29
0
 private static extern NtEntryListener Native_NT_AddPolledEntryListenerSingle(NtEntryListenerPoller poller, NtEntry entry, uint flags);
Beispiel #30
0
 public void NT_GetEntryValue(NtEntry entry, NtValue *value)
 {
     Native_NT_GetEntryValue(entry, value);
 }