Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

A call to the CryptSetProvider function does not succeed on Windows Server 2003-based computer


View products that this article applies to.

Symptoms

When you make a call to the CryptSetProvider function on your Microsoft Windows Server 2003-based computer, the call does not succeed. When this problem occurs, the GetLastError function returns the following error code:
ERROR_CALL_NOT_IMPLEMENTED

↑ Back to the top


Cause

This error occurs because Windows Server 2003 does not let you change the default cryptographic service provider (CSP). Calls to the CryptSetProvider function do not succeed if the CSP that is specified is different from the current default CSP.

↑ Back to the top


Resolution

To resolve this issue, do not make calls to the CryptSetProvider function on a Windows Server 2003-based computer. To implement a CSP in your program, specify the CSP in a call to the CryptAcquireContext function that uses the phProv option.

↑ Back to the top


More information

For more information about the CryptAcquireContext function, visit the following Microsoft Web site:

↑ Back to the top


Keywords: KB840694, kbprb, kbtshoot, kbdev

↑ Back to the top

Article Info
Article ID : 840694
Revision : 4
Created on : 2/5/2007
Published on : 2/5/2007
Exists online : False
Views : 246