BCryptSetContextFunctionProperty function (bcrypt.h)
The BCryptSetContextFunctionProperty function sets the value of a named property for a cryptographic function in an existing CNG context.
[in] ULONG dwTable,
[in] LPCWSTR pszContext,
[in] ULONG dwInterface,
[in] LPCWSTR pszFunction,
[in] LPCWSTR pszProperty,
[in] ULONG cbValue,
[in] PUCHAR pbValue
Identifies the configuration table that the context exists in. This can be one of the following values.
|The context exists in the local-machine configuration table.
|This value is not available for use.
A pointer to a null-terminated Unicode string that contains the identifier of the context to set the function property in.
Identifies the cryptographic interface that the function exists in. This can be one of the following values.
A pointer to a null-terminated Unicode string that contains the identifier of the cryptographic function to set the property for.
A pointer to a null-terminated Unicode string that contains the identifier of the property to set.
Contains the size, in bytes, of the pbValue buffer. This is the exact number of bytes that will be stored. If the property value is a string, you should add the size of one character to also store the terminating null character, if needed.
The address of a buffer that contains the new property 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.
|The function was successful.
|The caller does not have write access to the properties for the function.
|One or more parameters are not valid.
|A memory allocation failure occurred.
|The specified context or function could not be found.
BCryptSetContextFunctionProperty can be called only in user mode.
|Minimum supported client
|Windows Vista [desktop apps only]
|Minimum supported server
|Windows Server 2008 [desktop apps only]