Jump to content
Mateo

Only one instance exists, but only the old one

Recommended Posts

Hello everyone :)

I have a problem, I am running a process on the SYSTEM user and I want to display messages to the user, so what I want to do is another process that will run on the user himself, and then I want to send him some "update" so that he can display the message.

Anyone have an idea how to do this?

Thank you!

Share this post


Link to post
Share on other sites
Posted (edited)

I remember that there were some threads on this forum, and there is a wiki with the same thema: interprocess communication,.

 

As for ideas : maybe use a file or ini file to communicate with the processes.

The System process would create a file, and the User process would look if the file exists, then display the message and delete the file.

The same would go for the ini, but there, instead of deleting the message, the user process would write back that it has read the last message, so that the system can write new ones. 

Edited by Dan_555

Share this post


Link to post
Share on other sites

Thanks for this thread, I'll take a look now.

As for file communication, I considered it, but the problem is that it costs me time (I need a response of less than a second)

Share this post


Link to post
Share on other sites

Look in my signature I made 2 IPCs that can be used for that purpose.  Named Pipe and WCD both are very fast and can be easily implemented.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...