I have been having issues trying to get domain users to authenticate with my custom credential provider. From the Microsoft sample there is a _fIsLocalUser variable which is checked in CSampleCredential::GetSerialization. This is normally true for most cases; however, if connected to a domain and with the Other User tile then I get The parameter is incorrect. It seems that even the suggested format of <Domain>\<Username> isn't accepted when the credential is Serialized. If possible I would also like to support <Username>@<UPN> as well.
I am not sure if this method is the problem however here is the documentation https://msdn.microsoft.com/en-us/library/windows/desktop/aa374802(v=vs.85).aspx
Thanks