宣告

[DllImport("user32.dll", EntryPoint = "GetWindowThreadProcessId")]

public static extern uint GetWindowThreadProcessId(int hWnd, ref uint lpdwProcessId);

 

 

使用

uint T_uiPid = 0;

GetWindowThreadProcessId(跳出視窗的Handle, ref T_uiPid);

 

接著用T_uiPid就是跳出視窗的Process的ID了

arrow
arrow
    全站熱搜

    welkingunther 發表在 痞客邦 留言(0) 人氣()