H
HasGen
Guest
I have a service running in "NT Service\MyService" account. I am able to cocreate a COM outofproc server running in the same account. In this COM server I need to make a call : ::SHGetKnownFolderPath(FOLDERID_RoamingAppData, KF_FLAG_CREATE, v, &pszPath); using a NULL token is not working so I have tried to get the token from LogonUser call as :
::LogonUser(L"MyService", L"NT Service", NULL, LOGON32_LOGON_SERVICE, LOGON32_PROVIDER_DEFAULT, &hToken);
But this fails as
Error 1326 = "The user name or password is incorrect."
Any ideas?
Continue reading...
::LogonUser(L"MyService", L"NT Service", NULL, LOGON32_LOGON_SERVICE, LOGON32_PROVIDER_DEFAULT, &hToken);
But this fails as
Error 1326 = "The user name or password is incorrect."
Any ideas?
Continue reading...