Handle SERVICE_CONTROL_INTERROGATE requests. Thanks to Carsten Ralle for noticing this.
This commit is contained in:
		
							parent
							
								
									cf2be57494
								
							
						
					
					
						commit
						d7ca0300a3
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -154,6 +154,9 @@ bool remove_service(void) {
 | 
			
		|||
 | 
			
		||||
DWORD WINAPI controlhandler(DWORD request, DWORD type, LPVOID boe, LPVOID bah) {
 | 
			
		||||
	switch(request) {
 | 
			
		||||
		case SERVICE_CONTROL_INTERROGATE:
 | 
			
		||||
			SetServiceStatus(statushandle, &status);
 | 
			
		||||
			return NO_ERROR;
 | 
			
		||||
		case SERVICE_CONTROL_STOP:
 | 
			
		||||
			logger(LOG_NOTICE, _("Got %s request"), "SERVICE_CONTROL_STOP");
 | 
			
		||||
			break;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue