Exemplo n.º 1
0
 public static WinAPIWrapper.RECT GetHandleDimensions(IntPtr handle)
 {
     WinAPIWrapper.RECT dimensions = new WinAPIWrapper.RECT();
     WinAPIWrapper.GetWindowRect(handle, ref dimensions);
     return(dimensions);
 }
Exemplo n.º 2
0
 public static WinAPIWrapper.RECT GetProcessDimensions(Process proc)
 {
     WinAPIWrapper.RECT dimensions = new WinAPIWrapper.RECT();
     WinAPIWrapper.GetWindowRect(proc.MainWindowHandle, ref dimensions);
     return(dimensions);
 }