Get window handle

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By DougFunny

Is there a way to get the current window handle for the game during runtime?
Specifically looking for the windows HWND type object, I found this function from “windows.h”:

HWND WINAPI GetActiveWindow(void);

But I’m looking for a “native godot” function, godot has a function to get it?

:bust_in_silhouette: Reply From: Dan_SCE

New in Godot 3.3 is OS::get_native_handle(OS::WINDOW_HANDLE)