|
@@ -175,10 +175,9 @@ struct SetupSoftInfo
|
|
|
};
|
|
|
|
|
|
ResourceWatcherFSM::ResourceWatcherFSM(void)
|
|
|
- :m_strTerminalNo(true),
|
|
|
- m_bFirstRunAfterBoot(FALSE),
|
|
|
+ :m_bFirstRunAfterBoot(FALSE),
|
|
|
m_cpuTop(0), flag4DeleteKeyAutoStartFile(false), flag4DoAutoStartTaskIgnoreBoot(FALSE), m_skipDesktopDetect(FALSE)
|
|
|
- , m_strCurrentUserName(true), m_strLoginedUserName(true)
|
|
|
+ , m_strLoginedUserName(true)
|
|
|
{
|
|
|
#ifdef RVC_OS_WIN
|
|
|
m_iNonSignedTotal = 0;
|
|
@@ -378,17 +377,10 @@ ErrorCodeEnum ResourceWatcherFSM::OnInit()
|
|
|
GetEntityBase()->GetFunction()->OpenConfig(Config_Run, spRunConfig);
|
|
|
GetEntityBase()->GetFunction()->OpenConfig(Config_CenterSetting, spCtSettingConfig);
|
|
|
erroCode = GetEntityBase()->GetFunction()->GetSystemStaticInfo(m_RvcSysinfo);
|
|
|
- m_strTerminalNo = m_RvcSysinfo.strTerminalID;
|
|
|
m_bFirstRunAfterBoot = DetectIsFirstRunAtBoot();
|
|
|
if (m_bFirstRunAfterBoot) {
|
|
|
DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("First time to run after system boot.");
|
|
|
}
|
|
|
-#if defined(RVC_OS_WIN)
|
|
|
- if (m_bFirstRunAfterBoot) {
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
-#endif //RVC_OS_WIN
|
|
|
|
|
|
spCtSettingConfig->ReadConfigValueInt(m_pEntity->GetEntityName(), "DisplayCnt", m_iNonSignedDisplay);
|
|
|
if (m_iNonSignedDisplay <= 0)
|
|
@@ -3945,18 +3937,6 @@ void ResourceWatcherFSM::InitUserInfo()
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- const DWORD INFO_BUFFER_SIZE = 128;
|
|
|
- char infoBuf[INFO_BUFFER_SIZE];
|
|
|
- ZeroMemory(infoBuf, INFO_BUFFER_SIZE);
|
|
|
- DWORD bufCharCount = INFO_BUFFER_SIZE;
|
|
|
- if (!GetUserName(infoBuf, &bufCharCount)) {
|
|
|
- DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("GetUserName failed, GLE=%u", GetLastError());
|
|
|
- }
|
|
|
- else {
|
|
|
- m_strCurrentUserName = infoBuf;
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("Current user name:%s", m_strCurrentUserName.GetData());
|
|
|
- }
|
|
|
-
|
|
|
DWORD dwSessionId = WTSGetActiveConsoleSessionId();
|
|
|
LPTSTR pBuffer = NULL;
|
|
|
DWORD dwBufferLen;
|