Share via


IAssociatedIdentityProvider::AssociateIdentity 메서드(identityprovider.h)

AssociateIdentity 메서드는 ID를 로컬 사용자 계정에 연결합니다.

구문

HRESULT AssociateIdentity(
  [in]  HWND           hwndParent,
  [out] IPropertyStore **ppPropertyStore
);

매개 변수

[in] hwndParent

계정 자격 증명을 수집하는 데 사용되는 창의 부모에 대한 핸들입니다.

[out] ppPropertyStore

ID와 연결된 IPropertyStore 인터페이스에 대한 포인터입니다.

반환 값

메서드가 성공하면 S_OK 반환합니다.

메서드가 실패하면 오류 코드를 반환합니다. 일반적인 오류 코드 목록은 일반적인 HRESULT 값을 참조하세요.

설명

이 메서드는 계정 자격 증명을 수집하기 위해 CredUIPromptForWindowsCredentials 를 호출해야 합니다.

요구 사항

   
지원되는 최소 클라이언트 Windows 7 [데스크톱 앱만 해당]
지원되는 최소 서버 Windows Server 2008 R2 [데스크톱 앱만 해당]
대상 플랫폼 Windows
헤더 identityprovider.h

참고 항목

IAssociatedIdentityProvider