[fpc-devel] SimpleIPC and TWinMsgServerComm.PeekMessage

Juha Manninen juha.manninen62 at gmail.com
Wed Oct 9 16:19:45 CEST 2013

On Wed, Oct 9, 2013 at 2:52 PM, Sven Barth <pascaldragon at googlemail.com> wrote:
> You might want to take a look at WaitForInputIdle.
> MSDN entry:
> http://msdn.microsoft.com/en-us/library/windows/desktop/ms687022%28v=vs.85%29.aspx
> Informative blog entry:
> http://blogs.msdn.com/b/oldnewthing/archive/2010/03/25/9984720.aspx
> In my opinion you should use this in TLHelpConnection.StartHelpServer.
> Though you could add it in TWinMsgServerComm as well, as we rely on messages
> anyway...

No, TLHelpConnection demonstrates cross-platform IPC a cross-platform
application. It cannot use Windows API directly.
SimpleIPC is the component that hides platform specific code.
I am a little uncomfortable with WinAPI myself.

Another feature :
This code always starts a new instance of lhelp, even if I have
already opened one manually.
Sometimes it would be desirable to attach to a running instance.
Maybe it is already possible using SimpleIPC, I don't know.


More information about the fpc-devel mailing list