Export (0) Print
Expand All

IEnroll4::ProviderType property

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

The ProviderType property sets or retrieves the type of provider.

The value of the ProviderType property is passed to the CryptAcquireContext CryptoAPI function. Valid values are determined by the cryptographic service provider (CSP) in use. The default value for this property is 1. This property was first defined in the IEnroll interface.

This property is read/write.

Syntax


HRESULT put_ProviderType(
  [in]   LONG Type
);

HRESULT get_ProviderType(
  [out]  LONG *pType
);

Property value

LONG value assigned to the ProviderType property. Valid values for this property are determined by the CSP in use.

Error codes

If the property access methods put_ProviderType and get_ProviderType succeed, they return S_OK.

Any other HRESULT value indicates that the call failed.

Remarks

For general information about provider types, see Cryptographic Provider Types.

For more information about valid values for the Microsoft Base Cryptographic Provider, see the CryptAcquireContext CryptoAPI function.

For provider type information for other CSPs, see the documentation provided with the CSP.

The ProviderType property value is passed to CryptAcquireContext by using its dwProvType parameter.

The ProviderType property affects the behavior of the following methods:

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

End of client support

Windows XP

End of server support

Windows Server 2003

Header

Xenroll.h

Library

Uuid.lib

DLL

Xenroll.dll

IID

IID_IEnroll4 is defined as f8053fe5-78f4-448f-a0db-41d61b73446b

See also

IEnroll4

 

 

Community Additions

ADD
Show:
© 2014 Microsoft