Click here to Skip to main content
15,921,989 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: STL trickery Pin
User 58385225-Mar-07 21:19
User 58385225-Mar-07 21:19 
GeneralRe: STL trickery Pin
Stephen Hewitt25-Mar-07 21:51
Stephen Hewitt25-Mar-07 21:51 
QuestionDual Core Processor With Visual C++ 2005 Express edition Pin
ForNow25-Mar-07 16:04
ForNow25-Mar-07 16:04 
AnswerRe: Dual Core Processor With Visual C++ 2005 Express edition Pin
Christian Graus25-Mar-07 16:10
protectorChristian Graus25-Mar-07 16:10 
GeneralRe: Dual Core Processor With Visual C++ 2005 Express edition Pin
ForNow25-Mar-07 16:21
ForNow25-Mar-07 16:21 
AnswerRe: Dual Core Processor With Visual C++ 2005 Express edition Pin
Manticorr25-Mar-07 17:15
Manticorr25-Mar-07 17:15 
GeneralRe: Dual Core Processor With Visual C++ 2005 Express edition Pin
ForNow26-Mar-07 6:36
ForNow26-Mar-07 6:36 
QuestionApplication - Service Communication [modified] Pin
Gurkenscheibe25-Mar-07 11:12
Gurkenscheibe25-Mar-07 11:12 
Hello,

I have a question concerning services. I want to write a service, running from system start. This service should write to the windows registry HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce that will cause an application to start after the user logged on. This is because the application will exclusively run on the system and the system start will not carry on until the application is finished.
This application will do some password check. If the password is ok the application should close and the system start should go on else the user should be logged off.

Now the problems I'm facing.
The application-process could be killed and password check be by-passed that way. This is why I need the service to check whether the a) application has started, b) exited correctly (system start or user log off) or c) its process has been killed.

for a) can the application send a message to the service to tell the service that the application has started and that the service should start to watch over the application?
for c) if the application-process has been killed, can the service log off the user?

How can I protect the service from being killed? Maybe a cross-checking in the application if the service is alive? How would I do that?

Thank you very much for your help. If you need further details please ask. I'm happy about each and every comment. Code snippets are very welcome. Smile | :)


-- modified at 18:59 Sunday 25th March, 2007
AnswerRe: Application - Service Communication Pin
Programm3r25-Mar-07 20:56
Programm3r25-Mar-07 20:56 
GeneralRe: Application - Service Communication Pin
Gurkenscheibe26-Mar-07 10:43
Gurkenscheibe26-Mar-07 10:43 
GeneralRe: Application - Service Communication Pin
JudyL_MD26-Mar-07 2:20
JudyL_MD26-Mar-07 2:20 
GeneralRe: Application - Service Communication Pin
Gurkenscheibe26-Mar-07 10:41
Gurkenscheibe26-Mar-07 10:41 
Question[Message Deleted] Pin
Super Hornet25-Mar-07 9:25
Super Hornet25-Mar-07 9:25 
AnswerRe: doubt on menu item Pin
Christian Graus25-Mar-07 9:45
protectorChristian Graus25-Mar-07 9:45 
AnswerRe: doubt on menu item Pin
Michael Dunn25-Mar-07 10:16
sitebuilderMichael Dunn25-Mar-07 10:16 
GeneralRe: doubt on menu item Pin
George L. Jackson25-Mar-07 11:01
George L. Jackson25-Mar-07 11:01 
GeneralRe: doubt on menu item Pin
Mark Salsbery25-Mar-07 11:10
Mark Salsbery25-Mar-07 11:10 
JokeRe: doubt on menu item Pin
PJ Arends25-Mar-07 13:22
professionalPJ Arends25-Mar-07 13:22 
GeneralRe: doubt on menu item Pin
George L. Jackson25-Mar-07 23:56
George L. Jackson25-Mar-07 23:56 
GeneralRe: doubt on menu item Pin
Christian Graus25-Mar-07 14:08
protectorChristian Graus25-Mar-07 14:08 
QuestionCObject Pin
_808625-Mar-07 5:51
_808625-Mar-07 5:51 
AnswerRe: CObject Pin
Mark Salsbery25-Mar-07 8:19
Mark Salsbery25-Mar-07 8:19 
GeneralRe: CObject Pin
_808625-Mar-07 18:00
_808625-Mar-07 18:00 
AnswerRe: CObject Pin
David Crow25-Mar-07 10:45
David Crow25-Mar-07 10:45 
GeneralRe: CObject Pin
_808625-Mar-07 18:00
_808625-Mar-07 18:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.