다음을 통해 공유


ICEnroll::get_RootStoreName 메서드(xenroll.h)

[이 속성은 Windows Server 2008 및 Windows Vista를 기준으로 더 이상 사용할 수 없습니다.]

RootStoreName 속성은 기본적으로 신뢰할 수 있는 자체 서명된 루트 인증서가 모두 유지되는 루트 저장소의 이름을 설정하거나 검색합니다.

이 속성의 기본값은 "ROOT"입니다. 루트 저장소와 연결된 신뢰 수준 때문에 사용자에게 인증서를 수락하라는 메시지가 표시될 수 있습니다(사용자 인터페이스를 통해). 많은 애플리케이션에서 이 속성을 변경할 필요는 없지만 루트 인증서 신뢰와 관련된 사용자 인터페이스를 방지하려면 RootStoreName 을 "CA"로 설정할 수 있습니다.

이 속성은 ICEnroll 인터페이스에서 처음 정의되었습니다.

이 속성은 읽기/쓰기가 가능합니다.

구문

HRESULT get_RootStoreName(
  BSTR *pbstrName
);

매개 변수

pbstrName

반환 값

없음

설명

RootStoreName 은 다음 메서드의 동작에 영향을 줍니다.

인증서 등록 컨트롤이 스크립팅된 컨트롤로 실행될 때 이 속성을 설정하는 기능은 사용하지 않도록 설정됩니다.

예제

BSTR     bstrStoreName = NULL;
HRESULT  hr;

// pEnroll is previously instantiated ICEnroll interface pointer

// get the storename
hr = pEnroll->get_RootStoreName( &bstrStoreName );
if ( FAILED ( hr ) )
    printf("Failed getting RootStoreName - %x\n", hr );
else
    printf( "RootStoreName: %ws\n", bstrStoreName );
// free BSTR when done
if ( NULL != bstrStoreName )
    SysFreeString( bstrStoreName );

// set the storename
// bstrNewName is a BSTR that is previously set to a valid store name
hr = pEnroll->put_RootStoreName( bstrNewName );
if ( FAILED ( hr ) )
    printf("Failed setting RootStoreName - %x\n", hr );
else
    printf( "RootStoreName was set to : %ws\n", bstrNewName );

요구 사항

   
지원되는 최소 클라이언트 Windows XP [데스크톱 앱만 해당]
지원되는 최소 서버 Windows Server 2003 [데스크톱 앱만 해당]
대상 플랫폼 Windows
헤더 xenroll.h
라이브러리 Uuid.lib
DLL Xenroll.dll