Microsoft KB Archive/840694

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

Article ID: 840694

Article Last Modified on 2/5/2007

-

APPLIES TO


 * Microsoft Windows Server 2003, Standard Edition (32-bit x86)
 * Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
 * Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)

-





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



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.



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.



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

http://msdn2.microsoft.com/en-us/library/aa379886.aspx

Keywords: kbdev kbtshoot kbprb KB840694

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.