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