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

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

MyStoreType 속성은 MyStoreName 속성에 지정된 저장소 유형을 설정하거나 검색합니다. 이 저장소 유형은 CertOpenStore에 직접 전달됩니다.

이 속성의 기본값은 sz_CERT_STORE_PROV_SYSTEM. 시스템 저장소만 지원됩니다. 이 속성은 ICEnroll 인터페이스에서 처음 정의되었습니다.

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

구문

HRESULT get_MyStoreType(
  BSTR *pbstrType
);

매개 변수

pbstrType

반환 값

없음

설명

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

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

예제

BSTR     bstrStoreType = NULL;
HRESULT  hr;

// pEnroll is previously instantiated ICEnroll interface pointer

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

// set the storetype
// bstrNewType previously set to a valid store type
hr = pEnroll->put_MyStoreType( bstrNewType );
if ( FAILED ( hr ) )
    printf("Failed setting MyStoreType - %x\n", hr );
else
    printf( "MyStoreType was set to %ws\n", bstrNewType );

요구 사항

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