From bd83d8d5204f0e99481ca6132537ea6a60c81723 Mon Sep 17 00:00:00 2001 From: Fela Date: Mon, 21 Oct 2024 14:30:11 +0400 Subject: [PATCH] Update stub --- Telegram/Stub.cs | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/Telegram/Stub.cs b/Telegram/Stub.cs index 359fd71a3..54008d629 100644 --- a/Telegram/Stub.cs +++ b/Telegram/Stub.cs @@ -1530,6 +1530,42 @@ public static Telegram.Native.Composition.WindowVisual Create_stub(Windows.UI.Wi throw new RuntimeException(ex); } } + public static Windows.UI.WindowId GetCurrentWindowId_stub() + { + try + { + return Telegram.Native.Composition.WindowVisual.GetCurrentWindowId(); + } + catch (Exception ex) + { + Logger.Error(Environment.StackTrace); + throw new RuntimeException(ex); + } + } + public static uint GetWindowProcessId_stub(Windows.UI.WindowId windowId) + { + try + { + return Telegram.Native.Composition.WindowVisual.GetWindowProcessId(windowId); + } + catch (Exception ex) + { + Logger.Error(Environment.StackTrace); + throw new RuntimeException(ex); + } + } + public static bool IsValid_stub(Windows.UI.WindowId windowId, out string title) + { + try + { + return Telegram.Native.Composition.WindowVisual.IsValid(windowId, out title); + } + catch (Exception ex) + { + Logger.Error(Environment.StackTrace); + throw new RuntimeException(ex); + } + } } public static class AnimationController_stub {