diff --git a/ffi/dotnet/Devolutions.IronRdp/Generated/IronRdpErrorKind.cs b/ffi/dotnet/Devolutions.IronRdp/Generated/IronRdpErrorKind.cs index bb2d219c..0f9ec353 100644 --- a/ffi/dotnet/Devolutions.IronRdp/Generated/IronRdpErrorKind.cs +++ b/ffi/dotnet/Devolutions.IronRdp/Generated/IronRdpErrorKind.cs @@ -15,11 +15,13 @@ public enum IronRdpErrorKind { Generic = 0, PduError = 1, - CredsspError = 2, - Consumed = 3, - IO = 4, - AccessDenied = 5, - IncorrectEnumType = 6, - Clipboard = 7, - WrongOS = 8, + EncodeError = 2, + DecodeError = 3, + CredsspError = 4, + Consumed = 5, + IO = 6, + AccessDenied = 7, + IncorrectEnumType = 8, + Clipboard = 9, + WrongOS = 10, } diff --git a/ffi/dotnet/Devolutions.IronRdp/Generated/RawIronRdpErrorKind.cs b/ffi/dotnet/Devolutions.IronRdp/Generated/RawIronRdpErrorKind.cs index d9056006..1e86b93a 100644 --- a/ffi/dotnet/Devolutions.IronRdp/Generated/RawIronRdpErrorKind.cs +++ b/ffi/dotnet/Devolutions.IronRdp/Generated/RawIronRdpErrorKind.cs @@ -15,11 +15,13 @@ public enum IronRdpErrorKind { Generic = 0, PduError = 1, - CredsspError = 2, - Consumed = 3, - IO = 4, - AccessDenied = 5, - IncorrectEnumType = 6, - Clipboard = 7, - WrongOS = 8, + EncodeError = 2, + DecodeError = 3, + CredsspError = 4, + Consumed = 5, + IO = 6, + AccessDenied = 7, + IncorrectEnumType = 8, + Clipboard = 9, + WrongOS = 10, } diff --git a/ffi/dotnet/Devolutions.IronRdp/Generated/RawPduHint.cs b/ffi/dotnet/Devolutions.IronRdp/Generated/RawPduHint.cs index 35e5603d..6252967e 100644 --- a/ffi/dotnet/Devolutions.IronRdp/Generated/RawPduHint.cs +++ b/ffi/dotnet/Devolutions.IronRdp/Generated/RawPduHint.cs @@ -17,7 +17,7 @@ public partial struct PduHint private const string NativeLib = "DevolutionsIronRdp"; [DllImport(NativeLib, CallingConvention = CallingConvention.Cdecl, EntryPoint = "PduHint_find_size", ExactSpelling = true)] - public static unsafe extern ConnectorFfiResultBoxOptionalUsizeBoxIronRdpError FindSize(PduHint* self, byte* bytes, nuint bytesSz, bool* matched); + public static unsafe extern ConnectorFfiResultBoxOptionalUsizeBoxIronRdpError FindSize(PduHint* self, byte* bytes, nuint bytesSz); [DllImport(NativeLib, CallingConvention = CallingConvention.Cdecl, EntryPoint = "PduHint_destroy", ExactSpelling = true)] public static unsafe extern void Destroy(PduHint* self); diff --git a/ffi/dotnet/Devolutions.IronRdp/Generated/RawWinCliprdr.cs b/ffi/dotnet/Devolutions.IronRdp/Generated/RawWinCliprdr.cs index 28057334..2cfee629 100644 --- a/ffi/dotnet/Devolutions.IronRdp/Generated/RawWinCliprdr.cs +++ b/ffi/dotnet/Devolutions.IronRdp/Generated/RawWinCliprdr.cs @@ -16,11 +16,8 @@ public partial struct WinCliprdr { private const string NativeLib = "DevolutionsIronRdp"; - /// - /// SAFETY: `hwnd` must be a valid window handle - /// [DllImport(NativeLib, CallingConvention = CallingConvention.Cdecl, EntryPoint = "WinCliprdr_new", ExactSpelling = true)] - public static unsafe extern ClipboardWindowsFfiResultBoxWinCliprdrBoxIronRdpError New(nint hwnd); + public static unsafe extern ClipboardWindowsFfiResultBoxWinCliprdrBoxIronRdpError New(); [DllImport(NativeLib, CallingConvention = CallingConvention.Cdecl, EntryPoint = "WinCliprdr_next_clipboard_message", ExactSpelling = true)] public static unsafe extern ClipboardWindowsFfiResultOptBoxClipboardMessageBoxIronRdpError NextClipboardMessage(WinCliprdr* self); diff --git a/ffi/dotnet/Devolutions.IronRdp/Generated/WinCliprdr.cs b/ffi/dotnet/Devolutions.IronRdp/Generated/WinCliprdr.cs index a8ead2a8..ab865f26 100644 --- a/ffi/dotnet/Devolutions.IronRdp/Generated/WinCliprdr.cs +++ b/ffi/dotnet/Devolutions.IronRdp/Generated/WinCliprdr.cs @@ -29,18 +29,15 @@ public partial class WinCliprdr: IDisposable _inner = handle; } - /// - /// SAFETY: `hwnd` must be a valid window handle - /// /// /// /// A WinCliprdr allocated on Rust side. /// - public static WinCliprdr New(nint hwnd) + public static WinCliprdr New() { unsafe { - Raw.ClipboardWindowsFfiResultBoxWinCliprdrBoxIronRdpError result = Raw.WinCliprdr.New(hwnd); + Raw.ClipboardWindowsFfiResultBoxWinCliprdrBoxIronRdpError result = Raw.WinCliprdr.New(); if (!result.isOk) { throw new IronRdpException(new IronRdpError(result.Err));