<StandardModule> _
Friend NotInheritable Class FullScreen
' Methods
<DllImport("user32", EntryPoint:="SetWindowPos", CharSet:=CharSet.Ansi, SetLastError:=True, ExactSpelling:=True)> _
Public Shared Function FenetrePosition(ByVal hwnd As Integer, ByVal hWndInsertAfter As Integer, ByVal x As Integer, ByVal y As Integer, ByVal cx As Integer, ByVal cy As Integer, ByVal wFlags As Integer) As Boolean
End Function
<STAThread> _
Public Shared Sub main()
Dim num2 As Integer = 8
Dim num As Integer = 30
Dim process As Process
For Each process In Process.GetProcessesByName("DofusMod")
FullScreen.FenetrePosition(CInt(process.MainWindowHandle), -1, (0 - num2), (0 - num), (Screen.PrimaryScreen.Bounds.Width + (num2 * 2)), ((Screen.PrimaryScreen.Bounds.Height + num) + num2), &H40)
Next
End Sub
End Class