Esempio n. 1
0
 private void SetWindowAlwaysOnTop(IntPtr hWnd, IntPtr position) =>
 Win32API.SetWindowPos(hWnd, position, 0, 0, 0, 0, TopMostFlags);
Esempio n. 2
0
 private int GetWindowProcessID(int hWnd)
 {
     Win32API.GetWindowThreadProcessId(hWnd, out int pid);
     return(pid);
 }