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