Skip to content

Latest commit

 

History

History
119 lines (99 loc) · 6.06 KB

nf-xenroll-icenroll-get_castoretype.md

File metadata and controls

119 lines (99 loc) · 6.06 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:xenroll.ICEnroll.get_CAStoreType
ICEnroll::get_CAStoreType (xenroll.h)
Sets or retrieves the type of store to use for the store specified by the CAStoreName property. (Get)
CAStoreType property [Security]
CAStoreType property [Security]
CEnroll object
CAStoreType property [Security]
ICEnroll interface
CAStoreType property [Security]
ICEnroll2 interface
CAStoreType property [Security]
ICEnroll3 interface
CAStoreType property [Security]
ICEnroll4 interface
CEnroll object [Security]
CAStoreType property
ICEnroll interface [Security]
CAStoreType property
ICEnroll.CAStoreType
ICEnroll.get_CAStoreType
ICEnroll2 interface [Security]
CAStoreType property
ICEnroll2.CAStoreType
ICEnroll2::get_CAStoreType
ICEnroll2::put_CAStoreType
ICEnroll3 interface [Security]
CAStoreType property
ICEnroll3.CAStoreType
ICEnroll3::get_CAStoreType
ICEnroll3::put_CAStoreType
ICEnroll4 interface [Security]
CAStoreType property
ICEnroll4.CAStoreType
ICEnroll4::CAStoreType
ICEnroll4::get_CAStoreType
ICEnroll4::put_CAStoreType
ICEnroll::get_CAStoreType
ICEnroll::put_CAStoreType
get_CAStoreType
security.icenroll4_castoretype
sz_CERT_STORE_PROV_SYSTEM
sz_CERT_STORE_PROV_SYSTEM_W
xenroll/ICEnroll2::CAStoreType
xenroll/ICEnroll2::get_CAStoreType
xenroll/ICEnroll2::put_CAStoreType
xenroll/ICEnroll3::CAStoreType
xenroll/ICEnroll3::get_CAStoreType
xenroll/ICEnroll3::put_CAStoreType
xenroll/ICEnroll4::CAStoreType
xenroll/ICEnroll4::get_CAStoreType
xenroll/ICEnroll4::put_CAStoreType
xenroll/ICEnroll::CAStoreType
xenroll/ICEnroll::get_CAStoreType
xenroll/ICEnroll::put_CAStoreType
security\icenroll4_castoretype.htm
security
8b0b113d-4046-4b2b-8f3b-ad08bfe3d0ac
12/05/2018
CAStoreType property [Security], CAStoreType property [Security],CEnroll object, CAStoreType property [Security],ICEnroll interface, CAStoreType property [Security],ICEnroll2 interface, CAStoreType property [Security],ICEnroll3 interface, CAStoreType property [Security],ICEnroll4 interface, CEnroll object [Security],CAStoreType property, ICEnroll interface [Security],CAStoreType property, ICEnroll.CAStoreType, ICEnroll.get_CAStoreType, ICEnroll2 interface [Security],CAStoreType property, ICEnroll2.CAStoreType, ICEnroll2::get_CAStoreType, ICEnroll2::put_CAStoreType, ICEnroll3 interface [Security],CAStoreType property, ICEnroll3.CAStoreType, ICEnroll3::get_CAStoreType, ICEnroll3::put_CAStoreType, ICEnroll4 interface [Security],CAStoreType property, ICEnroll4.CAStoreType, ICEnroll4::CAStoreType, ICEnroll4::get_CAStoreType, ICEnroll4::put_CAStoreType, ICEnroll::get_CAStoreType, ICEnroll::put_CAStoreType, get_CAStoreType, security.icenroll4_castoretype, sz_CERT_STORE_PROV_SYSTEM, sz_CERT_STORE_PROV_SYSTEM_W, xenroll/ICEnroll2::CAStoreType, xenroll/ICEnroll2::get_CAStoreType, xenroll/ICEnroll2::put_CAStoreType, xenroll/ICEnroll3::CAStoreType, xenroll/ICEnroll3::get_CAStoreType, xenroll/ICEnroll3::put_CAStoreType, xenroll/ICEnroll4::CAStoreType, xenroll/ICEnroll4::get_CAStoreType, xenroll/ICEnroll4::put_CAStoreType, xenroll/ICEnroll::CAStoreType, xenroll/ICEnroll::get_CAStoreType, xenroll/ICEnroll::put_CAStoreType
xenroll.h
Windows
Windows XP [desktop apps only]
Windows Server 2003 [desktop apps only]
Uuid.lib
Xenroll.dll
Windows
19H1
ICEnroll::get_CAStoreType
xenroll/ICEnroll::get_CAStoreType
c++
APIRef
kbSyntax
COM
Xenroll.dll
ICEnroll4.CAStoreType
ICEnroll4.get_CAStoreType
ICEnroll4.put_CAStoreType
ICEnroll3.CAStoreType
ICEnroll3.get_CAStoreType
ICEnroll3.put_CAStoreType
ICEnroll2.CAStoreType
ICEnroll2.get_CAStoreType
ICEnroll2.put_CAStoreType
ICEnroll.CAStoreType
ICEnroll.get_CAStoreType
ICEnroll.put_CAStoreType
CEnroll.CAStoreType

ICEnroll::get_CAStoreType

-description

[This property is no longer available for use as of Windows Server 2008 and Windows Vista.]

The CAStoreType property sets or retrieves the type of store to use for the store specified by the CAStoreName property. This store type is passed directly on to the CertOpenStore function.

The default value for this property is sz_CERT_STORE_PROV_SYSTEM. Only system stores are supported. This property was first defined in the ICEnroll interface.

This property is read/write.

-parameters

-remarks

The CAStoreType property affects the behavior of the following methods:

The ability to set this property is disabled when the Certificate Enrollment Control is executed as a scripted control.

Examples

BSTR     bstrStoreType = NULL;
HRESULT  hr;

// pEnroll is previously instantiated ICEnroll interface pointer

// get the storetype
hr = pEnroll->get_CAStoreType( &bstrStoreType );
if ( FAILED ( hr ) )
    printf("Failed getting CAStoreType - %x\n", hr );
else
    printf( "CAStoreType: %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_CAStoreType( bstrNewType );
if ( FAILED ( hr ) )
    printf("Failed setting CAStoreType - %x\n", hr );
else
    printf( "CAStoreType was set to %ws\n", bstrNewType );