Any Idea??
Any Idea??
Plz.......................
Why not try using API to check if there is any active connection, as soon as your program detects an active connection then fireup the application you want to launch.Quote:
Originally posted by moinkhan
Plz.......................
Give that a try.
This way my application would always be running and checking the connection on interval basis... this is resource wasting... i don't want that... there must be a system message which application should catch and then process.... like MSN Messenger and yahoo messenger do...
Hmm, i would like to know about those magic functions :). How do you think Messenger and Yahoo does that? They check for connection state just like that, or something simillar......Quote:
Originally posted by moinkhan
This way my application would always be running and checking the connection on interval basis... this is resource wasting... i don't want that... there must be a system message which application should catch and then process.... like MSN Messenger and yahoo messenger do...
Good luck
No magic... just hooks... you have to hook your Program's Windows Main procedure... Operating System sends a message for almost all the activities (like screen refreshing..) to the window.. we intercept such messages and process them before our program has the chance to process(or ignore) it...Quote:
Originally posted by Danial
Hmm, i would like to know about those magic functions :). How do you think Messenger and Yahoo does that? They check for connection state just like that, or something simillar......
Good luck
Well.. i was interested in knowing whether OS gives any signal whenever dialup connection is made to the remote pc...........Just tell me WM_?????? i will do the rest...
I am aware of Hooks, dont think it will apply in this case. Also if you are usinb VB to hook you can expect fequent crash.Quote:
Originally posted by moinkhan
No magic... just hooks... you have to hook your Program's Windows Main procedure... Operating System sends a message for almost all the activities (like screen refreshing..) to the window.. we intercept such messages and process them before our program has the chance to process(or ignore) it...
Well.. i was interested in knowing whether OS gives any signal whenever dialup connection is made to the remote pc...........Just tell me WM_?????? i will do the rest...
I dont think it is that inefficient if you ru a small utility querying registry to check for connection state.
If you want to go on that path, try setting up a system wide hook and watch/check for all meseges.
Check this link for more detail on Hooks in VB.
http://www.vbaccelerator.com/home/VB...ry/article.asp