Article ID: 2513526 - Last Review: March 24, 2011 - Revision: 1.0 CryptSetProvider function or CryptSetProviderEx fails to change the user’s default cryptographic service provider (CSP).
SYMPTOMSWhen you try to change the user’s default cryptographic service provider (CSP) by calling the CryptSetProvider function or CryptSetProviderEx function with dwFlags set to CRYPT_USER_DEFAULT on the Microsoft products listed in the "Applies to" section, this results in the ERROR_CALL_NOT_IMPLEMENTED error. This is by design. CAUSEThe call to the CryptSetProvider or CryptSetProviderEx function does not succeed when a CSP specified to the function is different from the default CSP. This error occurs because the operating system does not let you to change the default cryptographic service provider (CSP). RESOLUTIONTo use a CSP that is different from the default one, specify the CSP to the pszProvider parameter of the CryptAcquireContext function. MORE INFORMATIONFor more information about the CryptSetProvider function and CryptSetProviderEx function, visit the following Microsoft Web site: CryptSetProvider Function http://msdn.microsoft.com/en-us/library/aa380274(VS.85).aspx (http://msdn.microsoft.com/en-us/library/aa380274(VS.85).aspx) CryptSetProviderEx Function http://msdn.microsoft.com/en-us/library/aa380275(VS.85).aspx (http://msdn.microsoft.com/en-us/library/aa380275(VS.85).aspx) For additional information regarding Windows Server 2003, click the following article number to view the article in the Microsoft Knowledge Base: A call to the CryptSetProvider function does not succeed on Windows Server 2003-based computer http://support.microsoft.com/kb/840694/en-us (http://support.microsoft.com/kb/840694/en-us) The default CSP for the operating system that you are using can be found by calling the CryptGetDefaultProvider function: CryptGetDefaultProvider Function http://msdn.microsoft.com/en-us/library/aa379945(VS.85).aspx (http://msdn.microsoft.com/en-us/library/aa379945(VS.85).aspx) Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use
(http://go.microsoft.com/fwlink/?LinkId=151500)
for other considerations. APPLIES TO
| Other Resources Other Support Sites
CommunityGet Help NowArticle Translations |






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email
Back to the top
