Click to See Complete Forum and Search --> : Re: One method- Use CSocket wiht Client and Server


zain
March 28th, 1999, 01:23 PM
Thanks for your response it help me a bit but the main problem i am facing is that i can access only the shared directory of the other user. i cannot run the server application on that machine which listens my request. The main thing i need to know is how can i deploy my server application on that machin without being in the knowledge of that user. Also remember that we both are using NTworkstation4.0

Zain
March 28th, 1999, 01:23 PM
Thanks for your response it help me a bit but the main problem i am facing is that i can access only the shared directory of the other user. i cannot run the server application on that machine which listens my request. The main thing i need to know is how can i deploy my server application on that machin without being in the knowledge of that user. Also remember that we both are using NTworkstation4.0

zain
March 28th, 1999, 01:39 PM
Is'nt it possible with the help of automation server in the way that i just put my server application on that machine which executes automatically at a particular time than i dispatch any request to execute my desired application.

Zain
March 28th, 1999, 01:39 PM
Is'nt it possible with the help of automation server in the way that i just put my server application on that machine which executes automatically at a particular time than i dispatch any request to execute my desired application.

Masaaki Onishi
March 28th, 1999, 04:51 PM
Hi.

First of all, I don't know your LAN topology.

But,if you login Domain name to server, not login in your machine,

you can use "net send".

C://net send [login name use] [message]

At the same time, each host must open your program, not Server program.

This dialog application starts worker thread including loop, this loop

can check whether messagebox pops up, including your message.

This message can include application name which you want to lanuch.

So, shellexecute, CreateProcess or WinExe(?) launch the application.


In order to make this program, you need some prerequistes.

1) Can you use SPY++ to figure out z-order of child?

2) Can you write Timer application to launch the application at the time when

you set?

3) Can you modify the static control of the other application by your program?

4) Can you write the worker thread program to find whether messagebox is opened?


So far, I made this kind of program and therefore I can advise you to do this.

If you think that it is difficult for you to do this one time, you had better

try to make the program one by one.


Last, if you use CSocket or this program, the target window NT must open the

Server program or this program.


Hope for help.

-Masaaki Onishi-

zain
March 29th, 1999, 01:03 AM
Thanks for your response again.


I've got some new ideas from you, i've a knowledge of worker thread and timers (implementation point of view) but need some help for spy z-oder..... and to modify the static control of other application. by the way why we need to modify the static control of other applicaion in this scenario.


Dear if you know any articles regarding this problem on the net or if you personnally owning this material and its shareware so please send me the links or the material i'll be grateful to you.

email: rafiqui@paknet3.ptc.pk

street101@hotmail.com


Thanks.

Zain.

Zain
March 29th, 1999, 01:03 AM
Thanks for your response again.


I've got some new ideas from you, i've a knowledge of worker thread and timers (implementation point of view) but need some help for spy z-oder..... and to modify the static control of other application. by the way why we need to modify the static control of other applicaion in this scenario.


Dear if you know any articles regarding this problem on the net or if you personnally owning this material and its shareware so please send me the links or the material i'll be grateful to you.

email: rafiqui@paknet3.ptc.pk

street101@hotmail.com


Thanks.

Zain.

Masaaki Onishi
March 29th, 1999, 10:44 AM
Hi.


When you open SPY++, the window showing tree identifes how the child controls

are put on the parent window.

For example, MessageBox caption->OK button->static control.

After this, we can catch the window handle to use GetTopWindow and GetWindowNext

or GetWindow of CWnd function. Also we use CWnd::FindWindow(class name, window

caption).

FindWindow is only avaliabe for the parent window. After this, you can

catch the child window handle by GetTopWindow...


When you use net send command on Window NT, you put some message on MessageBox.

This messsage include the information which you want to send.

After you get this string, you can cut the string to get the application name

, time and so on.


Hope for help.

-Masaaki Onishi-