{ I can use this function to get the location of a application by a window of it .}function MyGetWindowModuleFileName(Wnd: HWND): string; //By windowfunction MyGetWindowModuleFileNmae(PID:dword):string; //By processIDfunction MyGetProcessID(var List: TStringList; FileName: string = ''): TProcessEntry32;procedure MyGetProcessModule(FProcessEntry32: TProcessEntry32;ModuleStruct: TMODULEENTRY32);