Register for an application

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm looking for infomation about registering an application in Windows. I have a client program and a server program. If the user opens the client first and there is no server to connect to I want it to register my app and when the server opens be notified. I know this is possible in OS10 but I'm not sure about windows. Any help?
 
I looked at the documentation on this and I don't see how it helps me. I don't want to load a dll, I just want to be notified when my second app starts running. I also don't want to have to poll for it.
 
Eric said:
I don't want to load a dll, I just want to be notified
when my second app starts running. I also don't
want to have to poll for it.

I'm not sure I understand. If you are asking if the o/s provides a way for
the first instance of an application to be automatically notified of the
launch of a subsequent instance then the answer is no. You'd have to build
that.

However, if your application is composed of an executable and a DLL then the
DLL will receive DLL_PROCESS_ATTACH notifications every time that an
instance (initial or subsequent) is launched. Note however that those
notifications come in the context of the application, however.

Regards,
Will
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top