How to get the Handle that is executed in winexec or shellexecute?

前端 未结 3 1844
温柔的废话
温柔的废话 2021-01-28 09:54

i use to create a custom function like winexec(...):Hwnd that will retun the handle of executed application.

i did use the findwindow() but having problem if it change w

3条回答
  •  Happy的楠姐
    2021-01-28 10:33

    There is function named EnumWindows. I think it will be useful to you.

    Check the following links for more information

    http://delphi.about.com/od/windowsshellapi/l/aa080304a.htm

    http://www.swissdelphicenter.ch/torry/showcode.php?id=327

提交回复
热议问题