[Box Backup-dev] COMMIT r737 - box/trunk/bin/bbackupd
boxbackup-dev at fluffy.co.uk
boxbackup-dev at fluffy.co.uk
Wed Aug 9 18:21:42 BST 2006
Author: chris
Date: 2006-08-09 17:21:40 +0000 (Wed, 09 Aug 2006)
New Revision: 737
Modified:
box/trunk/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/trunk/bin/bbackupd/Win32ServiceFunctions.cpp
===================================================================
--- box/trunk/bin/bbackupd/Win32ServiceFunctions.cpp 2006-08-09 13:03:17 UTC (rev 736)
+++ box/trunk/bin/bbackupd/Win32ServiceFunctions.cpp 2006-08-09 17:21:40 UTC (rev 737)
@@ -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