Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

Service not executing task

$
0
0

I got the sample from here: click

And just changed this:

void CSampleService::ServiceWorkerThread(void) 
   { 
       // Periodically check if the service is stopping. 
       while (!m_fStopping) 
       { 
           // Perform main service function here... 
         MessageBoxW(NULL,L"TEST",L"TEST",NULL);
       } 
       // Signal the stopped event. 
       SetEvent(m_hStoppedEvent); 
   } 

So,when I run that service it should crash my pc with messageboxes,but I get NO messagebox!

I installed the service and started it from the services window.Under status it shows as "Started".

Why am I seeing NO msgbox?




Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>