theres a bug in your code, you're passing hex values as strings you should remove the quotes to make them numbers
orginal
code:
Interop.Call("User32", "AnimateWindow", Wnd.Handle, 180, "0x10000" | "0x80000");
fixed
code:
Interop.Call("User32", "AnimateWindow", Wnd.Handle, 180, 0x10000 | 0x80000);