Guillaume Marcais
11/30/2004 4:52:00 PM
Has anyone ever tried to send messages between applications using the
Windows messaging system (SendMessage call). Given my little knowledge
of Windows, I started with Ruby and Win32API (hopefully it is achievable
that way).
I am trying to discuss with the pageant program from PuTTy to get the
keys. I recompiled pageant with debugging enable so I can see the
request coming in. It works with PuTTy. But with my Ruby app mimicking
what PuTTy does to get the keys, it seems that pageant doesn't even get
the message.
The code is given in the attachement.The stuff about the file mapping
can be ignored. The SendMessage call returns 0 and pageant doesn't
display any debugging information, as if no message whatsoever was ever
received.
Is there any initialization to be done for Windows to agree to dispatch
my message?
Thanks for your help,
Guillaume.