Windows Credential Provider - Change User name Label on new Tile

242 views Asked by At

I use my credential provider for RDP login on server windows.

I customize UpdateRemoteCredential to transport login data like as username and password. and I can login successfully by the user and pass:

pcpcsOut->ulAuthenticationPackage = pcpcsIn->ulAuthenticationPackage;
pcpcsOut->cbSerialization = pcpcsIn->cbSerialization;
pcpcsOut->rgbSerialization = pcpcsIn->rgbSerialization;
pcpcsOut->clsidCredentialProvider = CLSID_CSamanV2Provider;

if (pcpcsOut->cbSerialization > 0 && (pcpcsOut->rgbSerialization = static_cast<BYTE*>(CoTaskMemAlloc(pcpcsIn->cbSerialization))) != nullptr)
{
    CopyMemory(pcpcsOut->rgbSerialization, pcpcsIn->rgbSerialization, pcpcsIn->cbSerialization);

    return S_OK;
}

After do this, I create a new Initialize function to create a new tile and login auto.

_rgpCredentials[0]->Initialize(_cpus, s_rgCredProvFieldDescriptors, s_rgFieldStateNormalPairs, _dwCredUIFlags, wszDomain, wszUsername, wszPassword);

enter image description here

like above picture, the tile's title is "other user". How can I change this to user name that logon by rdp?

So, my question is:

If any way to create the new tile for a user (not Other User) on my scenario? or If any way to change the Other User big title on the my tile?

0

There are 0 answers