'Get window handle in godot? C#

How do I get the window handle in Godot (C# mono)

I've been a WPF and Winforms developer for quite some time but I just started Godot and I am wondering since I need to make modifications to the window.



Solution 1:[1]

To get the hWnd of the Godot Window, you can use this function:

OS.get_native_handle(OS.WINDOW_HANDLE)

From C# that looks like this:

OS.GetNativeHandle(OS.HandleType.WindowHandle)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Theraot