Phantom Documentation

[Help Home] [Phantom Home]
GetProcessID

int GetProcessID()

Return Type: int
Parameters: none

Description:
This function, without a parameter, returns an integer containing the process handle for the current executable running the Phantom interpreter.

int GetProcessID(window)

Return Type: int
Parameters: window Win

Description:
This function, with a window parameter, returns an integer containing the process handle for the window represented by Win. This handle can then be passed to the KillProcess function to force the application closed.

Example Code
1 >>System("c:\\windows\\system32\\notepad.exe");
2 >>window w = MainWin("*", "Notepad");
3 >>int id = GetProcessID(w);
4 >>disp(id);
5884
5 >>KillProcess(id);



 


Copyright 2000-2011 Phantom Automated Solutions