Discussion:
IPC
(too old to reply)
jjoohhnn
2009-10-06 13:01:56 UTC
Permalink
Hi all,
I have two apps. one is usermodeapp.exe which has window(Title: MyWndTitle,
Name: MyWndName) and another one is servicemodeapp.exe which will send
messages to MyWndName and MyWndTitle window by using FindWindow API and
SendMessage API.

But, FindWindow api is getting failed while trying to find handle from
service application like servicemodeapp.exe?

I am using these two apps for IPC by using SendMessages(WM_COPYDATA). It
is success for user mode apps. But not usermode and servicemode
applications.

How to solve this?
Thanks,
jjjooohhhnn.
Igor Tandetnik
2009-10-06 13:18:32 UTC
Permalink
MyWndTitle, Name: MyWndName) and another one is servicemodeapp.exe
which will send messages to MyWndName and MyWndTitle window by using
FindWindow API and SendMessage API.
That's not going to work. Services run in a separate window station from
desktop apps, and the two can't access each other's HWNDs. Choose a
different IPC mechanism.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
jjoohhnn
2009-10-07 05:52:20 UTC
Permalink
Igor,

Thanks for your response.

Can you suggest any other IPC mechanism. I would like to choose Pipes.
Will it work?

Regards,
jjoohhnn.
Post by Igor Tandetnik
MyWndTitle, Name: MyWndName) and another one is servicemodeapp.exe
which will send messages to MyWndName and MyWndTitle window by using
FindWindow API and SendMessage API.
That's not going to work. Services run in a separate window station from
desktop apps, and the two can't access each other's HWNDs. Choose a
different IPC mechanism.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
Igor Tandetnik
2009-10-07 12:02:46 UTC
Permalink
Post by jjoohhnn
Can you suggest any other IPC mechanism. I would like to choose
Pipes. Will it work?
Yes. Named pipes is a popular choice in this situation.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
jjoohhnn
2009-10-07 13:00:17 UTC
Permalink
Thanks alot.

Regards,
jjoohhnn.
Post by Igor Tandetnik
Post by jjoohhnn
Can you suggest any other IPC mechanism. I would like to choose
Pipes. Will it work?
Yes. Named pipes is a popular choice in this situation.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
Loading...