In my case, a problem similar to the question was that the account I was trying to authenticate was in a domain to which my current machine did not belong. Unlike the original poster, my car should not and cannot be part of this other domain. I wanted the login to perform an action on a resource in this domain.
The answer was as follows
bool success = LogonUser( userName, domain, password, (int)LOGON32_LOGON_NEW_CREDENTIALS,
with the following constants:
public const int LOGON32_LOGON_NEW_CREDENTIALS = 9; public const int LOGON32_PROVIDER_DEFAULT = 0;
Hope this helps others lost in a similar situation.
source share