Click here to Skip to main content
15,889,211 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
Greetings,
I have an application (.exe) that works off packets in an intranet. What I'm trying to achieve is that while no user has logged on, the application remains listening for packets from the server, in another words, work in the background, but when a user logs on using his username and password, this service comes to the foreground to interact with the desktop.

If anyone knows how to do this, I would really appreciate it.
Posted
Updated 28-Mar-12 17:47pm
v2
Comments
Richard MacCutchan 28-Mar-12 12:03pm    
Please use English only; this is an international site and not everyone speaks Spanish.
Albert Holguin 28-Mar-12 23:57pm    
Made some translations. :)
_Zorro_ 29-Mar-12 3:39am    
Nice :)
Albert Holguin 29-Mar-12 10:03am    
Figured the poster might get more solutions if more people on the site could read it.
Albert Holguin 28-Mar-12 23:47pm    
edit: translation

Hello,

Did you look for information on services for Windows? (Not sure about the subject in C++, I suppose if you have access to the framework you can do the same).

I would look on this end (this is the first article I found, just to give you the idea[^])

Services remain "on" even if the user is not connected/logged-on to the computer.

And just in case, if I'm answering completely wrong and/or I didn't understand your question, apologies.

Cheers.

<edit>translation
 
Share this answer
 
v2
Comments
_Zorro_ 28-Mar-12 11:53am    
Ojo que exe y servicios no son lo mismo. Y es mejor contestar por aca en vez de crear una nueva respuesta.

Que quiere decir en segundo plano en tu caso?
wvelasqu 28-Mar-12 11:59am    
Este es el problema, la aplicacion ".exe" recibe mensajes del servidor para ser mostrados en el escritorio del usuario, en Windows XP lo que yo hacia era mantener un servicio escuchando que le enviaba los paquetes a la aplicacion a pesar de que no este nadie logon-on, cuando el usuario se logoneaba el servicio cargaba la aplicacion y podia mostrar los mensajes en el escritorio.. Pero en Windows 7 no se puede hacer eso??? =(
_Zorro_ 28-Mar-12 12:12pm    
wvelasqu: La verdad que ni idea, seguro que si escribis en Ingles como dice Richard vas a obtener mas ayuda.
Albert Holguin 28-Mar-12 23:40pm    
Why can't you do it? ...what part? ...how are you loading the executable? Is it just the UAC issue? The startup option is still there in Windows 7.
Richard MacCutchan 28-Mar-12 12:04pm    
Please only use national language to get people to translate into English. This is an international site and this question and any answers may be useful to people in all countries.
You are correct about the .exe listening even though no user has logged-on, but if a user logs-on the application must show certain things to the user, but since the .exe is running in the background, I can't get it to interact with the desktop.
 
Share this answer
 
v2
Comments
_Zorro_ 28-Mar-12 11:53am    
Te conteste, pero arriba.
Albert Holguin 28-Mar-12 23:51pm    
Why not load a separate exe located in the user's startup directory and use inter-process communications to talk between the applications? You just need a localized client-server (or some other IPC).
wvelasqu 29-Mar-12 10:35am    
it's a good idea, but Do you have something where I can read about that???

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900