[Box Backup-dev] COMMIT r732 - box/chris/merge/bin/bbackupd

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Wed Aug 9 13:38:20 BST 2006


Author: chris
Date: 2006-08-09 12:38:20 +0000 (Wed, 09 Aug 2006)
New Revision: 732

Modified:
   box/chris/merge/bin/bbackupd/Win32ServiceFunctions.cpp
Log:
* bin/bbackupd/Win32ServiceFunctions.cpp
- Keep a static char pointer to hold onto the config file name to
  pass it to ServiceMain (over whose parameters we have no control).
- ServiceMain passes the config file name as the parameter of the
  thread it creates.


Modified: box/chris/merge/bin/bbackupd/Win32ServiceFunctions.cpp
===================================================================
--- box/chris/merge/bin/bbackupd/Win32ServiceFunctions.cpp	2006-08-09 12:32:16 UTC (rev 731)
+++ box/chris/merge/bin/bbackupd/Win32ServiceFunctions.cpp	2006-08-09 12:38:20 UTC (rev 732)
@@ -93,6 +93,8 @@
 // It also returns on any error because the
 // service cannot start if there is an eror.
 
+static char* spConfigFileName;
+
 VOID ServiceMain(DWORD argc, LPTSTR *argv) 
 {
 	// initialise service status
@@ -129,7 +131,7 @@
 			NULL,
 			0,
 			RunService,
-			0,
+			spConfigFileName,
 			CREATE_SUSPENDED,
 			NULL);
 




More information about the Boxbackup-dev mailing list