CORE-12541, CORE-12279
svn path=/trunk/; revision=73487
if (ScmIsLocalSystemAccount(pImage->pszAccountName))
return ERROR_SUCCESS;
if (ScmIsLocalSystemAccount(pImage->pszAccountName))
return ERROR_SUCCESS;
+ // FIXME: Always assume LocalSystem
+ return ERROR_SUCCESS;
+
+#if 0
ptr = wcschr(pImage->pszAccountName, L'\\');
if (ptr != NULL)
{
ptr = wcschr(pImage->pszAccountName, L'\\');
if (ptr != NULL)
{
pUserName = ptr + 1;
pDomainName = pImage->pszAccountName;
pUserName = ptr + 1;
pDomainName = pImage->pszAccountName;
DPRINT("Domain: %S User: %S\n", pDomainName, pUserName);
DPRINT("Domain: %S User: %S\n", pDomainName, pUserName);
+ /* Logon the user */
+ // FIXME: Use the password!!
if (!LogonUserW(pUserName,
pDomainName,
if (!LogonUserW(pUserName,
pDomainName,
+ L"", // FIXME: lpszPassword,
LOGON32_LOGON_SERVICE,
LOGON32_PROVIDER_DEFAULT,
&pImage->hToken))
LOGON32_LOGON_SERVICE,
LOGON32_PROVIDER_DEFAULT,
&pImage->hToken))
dwError = GetLastError();
DPRINT1("LogonUserW() failed (Error %lu)\n", dwError);
}
dwError = GetLastError();
DPRINT1("LogonUserW() failed (Error %lu)\n", dwError);
}
if (ptr != NULL)
*ptr = L'\\';
return dwError;
if (ptr != NULL)
*ptr = L'\\';
return dwError;