Attaches OllyDbg to active (running) process with known process identifier. If another process is debugged, asks for permission to close it. Returns 0 on success and -1 on error.
int Attachtoactiveprocess(int processid);
Parameters:
processid - identifier of running process.
See also: OpenEXEfile