BCryptRemoveContextFunctionProvider
The BCryptRemoveContextFunctionProvider function removes a cryptographic function provider from the list of providers that are supported by an existing CNG context.
NTSTATUS WINAPI BCryptRemoveContextFunctionProvider(
ULONG dwTable,
LPCWSTR pszContext,
ULONG dwInterface,
LPCWSTR pszFunction,
LPCWSTR pszProvider
);
Parameters
dwTable
[in] Identifies the configuration table that the context exists in. This can be one of the following values.Value Meaning CRYPT_LOCAL The context exists in the local-machine configuration table. CRYPT_DOMAIN The context exists in the enterprise-wide configuration table. pszContext
[in] A pointer to a null-terminated Unicode string that contains the identifier of the context to remove the provider from.dwInterface
[in] Identifies the cryptographic interface to remove the provider from. This can be one of the following values.Value Meaning BCRYPT_ASYMMETRIC_ENCRYPTION_INTERFACE Remove the provider from the list of asymmetric encryption function providers. BCRYPT_CIPHER_INTERFACE Remove the provider from the list of cipher function providers. BCRYPT_HASH_INTERFACE Remove the provider from the list of hash function providers. BCRYPT_RNG_INTERFACE Remove the provider from the list of random number generator function providers. BCRYPT_SECRET_AGREEMENT_INTERFACE Remove the provider from the list of secret agreement function providers. BCRYPT_SIGNATURE_INTERFACE Remove the provider from the list of signature function providers. NCRYPT_KEY_STORAGE_INTERFACE Remove the provider from the list of key storage function providers. NCRYPT_SCHANNEL_INTERFACE Remove the provider from the list of Schannel function providers. pszFunction
[in] A pointer to a null-terminated Unicode string that contains the identifier of the cryptographic function to remove the provider from.pszProvider
[in] A pointer to a null-terminated Unicode string that contains the identifier of the provider to remove.
Return Value
Returns a status code that indicates the success or failure of the function.
Possible return codes include, but are not limited to, the following.
| Return code | Description |
|---|---|
| STATUS_SUCCESS | The function was successful. |
| STATUS_INVALID_PARAMETER | One or more parameters are not valid. |
| STATUS_NOT_FOUND | The specified context, function, or provider could not be found. |
Requirements
| Client | Requires Windows Vista. |
| Server | Requires Windows Server "Longhorn". |
| Header | Declared in Bcrypt.h. |
| Library | Use Bcrypt.lib. |
| DLL | Requires Bcrypt.dll. |