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(); })); }
private static extern NtBool Native_NT_SetDefaultEntryValue(NtEntry entry, NtValue *default_value);
public void NT_CancelRpcResult(NtEntry entry, NtRpcCall call) { Native_NT_CancelRpcResult(entry, call); }
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)); }
public byte *NT_GetRpcResult(NtEntry entry, NtRpcCall call, UIntPtr *result_len) { return(Native_NT_GetRpcResult(entry, call, result_len)); }
public NtRpcCall NT_CallRpc(NtEntry entry, byte * @params, UIntPtr params_len) { return(Native_NT_CallRpc(entry, @params, params_len)); }
public void NT_PostRpcResponse(NtEntry entry, NtRpcCall call, byte *result, UIntPtr result_len) { Native_NT_PostRpcResponse(entry, call, result, result_len); }
public void NT_CreatePolledRpc(NtEntry entry, byte *def, UIntPtr def_len, NtRpcCallPoller poller) { Native_NT_CreatePolledRpc(entry, def, def_len, poller); }
public void NT_SetEntryFlags(NtEntry entry, uint flags) { Native_NT_SetEntryFlags(entry, flags); }
private static extern void Native_NT_SetEntryFlags(NtEntry entry, uint flags);
public void NT_SetEntryTypeValue(NtEntry entry, NtValue *value) { Native_NT_SetEntryTypeValue(entry, value); }
private static extern void Native_NT_SetEntryTypeValue(NtEntry entry, NtValue *value);
public NtBool NT_SetEntryValue(NtEntry entry, NtValue *value) { return(Native_NT_SetEntryValue(entry, value)); }
private static extern NtBool Native_NT_SetEntryValue(NtEntry entry, NtValue *value);
public NtBool NT_SetDefaultEntryValue(NtEntry entry, NtValue *default_value) { return(Native_NT_SetDefaultEntryValue(entry, default_value)); }
public NtEntryListener NT_AddPolledEntryListenerSingle(NtEntryListenerPoller poller, NtEntry entry, uint flags) { return(Native_NT_AddPolledEntryListenerSingle(poller, entry, flags)); }
private static extern void Native_NT_CreatePolledRpc(NtEntry entry, byte *def, UIntPtr def_len, NtRpcCallPoller poller);
private static extern uint Native_NT_GetEntryFlags(NtEntry entry);
private static extern void Native_NT_PostRpcResponse(NtEntry entry, NtRpcCall call, byte *result, UIntPtr result_len);
public uint NT_GetEntryFlags(NtEntry entry) { return(Native_NT_GetEntryFlags(entry)); }
private static extern NtRpcCall Native_NT_CallRpc(NtEntry entry, byte * @params, UIntPtr params_len);
private static extern void Native_NT_DeleteEntry(NtEntry entry);
private static extern byte *Native_NT_GetRpcResult(NtEntry entry, NtRpcCall call, UIntPtr *result_len);
public void NT_DeleteEntry(NtEntry entry) { Native_NT_DeleteEntry(entry); }
private static extern byte *Native_NT_GetRpcResultTimeout(NtEntry entry, NtRpcCall call, UIntPtr *result_len, double timeout, NtBool *timed_out);
private static extern NtBool Native_NT_GetEntryInfoHandle(NtEntry entry, NtEntryInfo *info);
private static extern void Native_NT_CancelRpcResult(NtEntry entry, NtRpcCall call);
public NtBool NT_GetEntryInfoHandle(NtEntry entry, NtEntryInfo *info) { return(Native_NT_GetEntryInfoHandle(entry, info)); }
private static extern NtEntryListener Native_NT_AddPolledEntryListenerSingle(NtEntryListenerPoller poller, NtEntry entry, uint flags);
public void NT_GetEntryValue(NtEntry entry, NtValue *value) { Native_NT_GetEntryValue(entry, value); }