Credential Provider not working for Windows 2012 R1 Standard Server

Tyagi, Nikhil 5 Reputation points
2023-01-12T21:36:23.21+00:00
Hey,one issue i'm seeing with windows 2012 r1 standard server is that the ICredentialProvider::GetFieldDescriptorAt method isn't getting called at logon which is causing a blank logon screen with fields not getting populated. All other methods under ICredentialProvider are getting called.

The same plugin is working fine with windows 2012 r1 and r2 datacenter servers as well as 2012 r2 standard server.

snapshot of the GetFieldDescriptorAt method

public int GetFieldDescriptorAt(uint dwIndex, [Out] IntPtr ppcpfd) 
        {
            Log.LogMethodCall();
            if (dwIndex >= credentialTile.CredentialProviderFieldDescriptorList.Count)
            {
                return HResultValues.E_INVALIDARG;
            }

            var listItem = credentialTile.CredentialProviderFieldDescriptorList[(int) dwIndex];
            var pcpfd = Marshal.AllocCoTaskMem(Marshal.SizeOf(listItem)); 
            Marshal.StructureToPtr(listItem, pcpfd, false); 
            Marshal.StructureToPtr(pcpfd, ppcpfd, false); 

            return HResultValues.S_OK;
}
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,412 questions
{count} votes