GetUserSid of ICredentialProviderCredential2 can't be called RRS feed

  • Question

  • I am working on Credential Provider in Windows 8. I have some difficuty and hoping to get help.

    my credential is inherited form ICredentialProviderCredential2,and I have implement the function "GetUserSid", but I found this function had never been called. 

    the "QueryInterface" is as follows


      if (IsEqualIID(IID_IUnknown, riid) ||
       IsEqualIID(IID_ICredentialProviderCredential, riid) ||
       IsEqualIID(IID_ICredentialProviderCredential2, riid))
       *ppv = static_cast<ICredentialProviderCredential2*>(this) ;

      if (*ppv)
       return S_OK;


    Also, my provider has implemented "SetUserArray" of ICredentialProviderSetUserArray. This function can be called correctly.

    Can anybody help me, thanks.


    Thursday, June 20, 2013 5:55 AM