Recent

Author Topic: WaitForSingleObject in lazarus  (Read 1806 times)

wytwyt02

  • Jr. Member
  • **
  • Posts: 83
WaitForSingleObject in lazarus
« on: January 23, 2020, 10:15:14 am »
I need to wait for ShellExecute run, in stackoverflow, there is a way: https://stackoverflow.com/questions/17638674/how-to-wait-for-shellexecute-to-run, use ShellExecuteEx instead of ShellExecute, and using WaitForSingleObject to wait it done, but lazarus do not provide the `WaitForSingleObject` method. How can I fix that?

PascalDragon

  • Hero Member
  • *****
  • Posts: 5446
  • Compiler Developer
Re: WaitForSingleObject in lazarus
« Reply #1 on: January 23, 2020, 10:17:34 am »
WaitForSingleObject is provided in the Windows unit.

wytwyt02

  • Jr. Member
  • **
  • Posts: 83
Re: WaitForSingleObject in lazarus
« Reply #2 on: January 23, 2020, 10:18:24 am »
WaitForSingleObject is provided in the Windows unit.

I am sorry for my stupid. :P :P :P

 

TinyPortal © 2005-2018