moveWindowToDesktop method

int moveWindowToDesktop(
  1. int topLevelWindow,
  2. Pointer<GUID> desktopId
)

Implementation

int moveWindowToDesktop(int topLevelWindow, Pointer<GUID> desktopId) =>
    (ptr.ref.vtable + 5)
            .cast<
                Pointer<
                    NativeFunction<
                        Int32 Function(Pointer, IntPtr topLevelWindow,
                            Pointer<GUID> desktopId)>>>()
            .value
            .asFunction<
                int Function(
                    Pointer, int topLevelWindow, Pointer<GUID> desktopId)>()(
        ptr.ref.lpVtbl, topLevelWindow, desktopId);