I start a process from my application. This process spawns a secondary process that is always maximized. I want to minimize the secondary process from my code. I can obtain the handle to this process with the following code. Now that I have the handle, how do I minimize the process?

VB Code:
  1. Dim hEvtCmd As IntPtr
  2.             Dim bEvntStart As Boolean = False
  3.  
  4.             Do While Not bEvntStart
  5.                 For Each oProcess In System.Diagnostics.Process.GetProcesses()
  6.                     If oProcess.ProcessName.ToString = "evntcmd" Then
  7.                         bEvntStart = True
  8.                         hEvtCmd = oProcess.Handle
  9.                         MessageBox.Show("found it: " & CType(hEvtCmd, String))
  10.                     End If
  11.                 Next
  12.             Loop