RoyceF
January 18th, 2008, 12:41 PM
Hi,
I have a Windows service that I had running yesterday, but today I can't get it to start. I have gone back to my old code that ran yesterday, but it still doesn't start. How can I get an error code that will give me some hint of what the problem is? The failing code is shown below:
if( ::StartService(schService, 0, 0) )
{
Sleep(1000);
while( ::QueryServiceStatus(schService, &m_ssStatus) )
{
if( m_ssStatus.dwCurrentState == SERVICE_START_PENDING )
{
TRACE( "." ); THIS LOOP NEVER EXITS
Sleep( 1000 );
}
else
break;
}
I found an event in the application event log with the following description, but I don't know what it means:
The description for Event ID ( 0 ) in Source ( AutoFileHandler ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Service installed.
Can anybody help me with this?
Any help greatly appreciated.
I have a Windows service that I had running yesterday, but today I can't get it to start. I have gone back to my old code that ran yesterday, but it still doesn't start. How can I get an error code that will give me some hint of what the problem is? The failing code is shown below:
if( ::StartService(schService, 0, 0) )
{
Sleep(1000);
while( ::QueryServiceStatus(schService, &m_ssStatus) )
{
if( m_ssStatus.dwCurrentState == SERVICE_START_PENDING )
{
TRACE( "." ); THIS LOOP NEVER EXITS
Sleep( 1000 );
}
else
break;
}
I found an event in the application event log with the following description, but I don't know what it means:
The description for Event ID ( 0 ) in Source ( AutoFileHandler ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Service installed.
Can anybody help me with this?
Any help greatly appreciated.