|  | @@ -22,6 +22,12 @@ extern int test();
 | 
	
		
			
				|  |  |  // 工作启动回调函数;
 | 
	
		
			
				|  |  |  void CALLBACK WorkStart()
 | 
	
		
			
				|  |  |  {
 | 
	
		
			
				|  |  | +	Sleep(30000); // 延时启动:未找到服务类型:自动(延迟)类型
 | 
	
		
			
				|  |  | +	GLOBAL::GetIniInfo();
 | 
	
		
			
				|  |  | +	GLOBAL::GetMacAddress();
 | 
	
		
			
				|  |  | +	GLOBAL::GetLocalAddress();
 | 
	
		
			
				|  |  | +	GLOBAL::WriteTextLog(GLOBAL::SAT_TCP, "SATService goto start, tcp port = %ld", GLOBAL::g_stSATConfig.dwTCPSvrPort);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  	WindowsService::GetDebugPriv();
 | 
	
		
			
				|  |  |  	// 启用SAT执行器;
 | 
	
		
			
				|  |  |  	CSATExecutor::GetInstance()->StartWork();
 | 
	
	
		
			
				|  | @@ -63,11 +69,6 @@ int _tmain(int argc, TCHAR* argv[], TCHAR* envp[])
 | 
	
		
			
				|  |  |  	else
 | 
	
		
			
				|  |  |  	{
 | 
	
		
			
				|  |  |  		// TODO: 在此处为应用程序的行为编写代码。
 | 
	
		
			
				|  |  | -		GLOBAL::GetIniInfo();
 | 
	
		
			
				|  |  | -		//GLOBAL::Python27Dir();		// 放到GetIniInfo中执行;
 | 
	
		
			
				|  |  | -		GLOBAL::GetMacAddress();
 | 
	
		
			
				|  |  | -		GLOBAL::GetLocalAddress();
 | 
	
		
			
				|  |  | -		GLOBAL::WriteTextLog(GLOBAL::SAT_TCP, "SATService goto start, tcp port = %ld", GLOBAL::g_stSATConfig.dwTCPSvrPort);
 | 
	
		
			
				|  |  |  #if defined RTEST || defined _DEBUG
 | 
	
		
			
				|  |  |  		printf("服务端TCP端口号=%ld\n", GLOBAL::g_stSATConfig.dwTCPSvrPort);
 | 
	
		
			
				|  |  |  		WorkStart();
 |