Displaying a V2 Credential Provider on 'Other user' tile

左心房为你撑大大i 提交于 2019-12-04 07:48:21

If you are using the example, it always initializes the SID in the Initialize function, so this code will always copy the SID into the return pointer of the function, regardless of what you do afterwards(_pszUserSid != nullptr is always true in the example). If you want to have this function and have your CP show under "Other user", then the body should be nothing more than:

    *ppszSid = nullptr;
    return S_FALSE;

If you don't want your tile to be tied to a user, you don't have to implement ICredentialProviderCredential2 at all, since it only adds this function. Without this interface implemented, your CP will always show under "Other user". Implementing ICredentialProviderCredential is enough for this.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!