NCryptEnumAlgorithms function (ncrypt.h)
The NCryptEnumAlgorithms function obtains the names of the algorithms that are supported by the specified key storage provider.
SECURITY_STATUS NCryptEnumAlgorithms( [in] NCRYPT_PROV_HANDLE hProvider, [in] DWORD dwAlgOperations, [out] DWORD *pdwAlgCount, [out] NCryptAlgorithmName **ppAlgList, [in] DWORD dwFlags );
The handle of the key storage provider to enumerate the algorithms for. This handle is obtained with the NCryptOpenStorageProvider function.
A set of values that determine which algorithm classes to enumerate. This can be zero or a combination of one or more of the following values. If dwAlgOperations is zero, all algorithms are enumerated.
The address of a DWORD that receives the number of elements in the ppAlgList array.
The address of an NCryptAlgorithmName structure pointer that receives an array of the registered algorithm names. The variable pointed to by the pdwAlgCount parameter receives the number of elements in this array.
When this memory is no longer needed, it must be freed by passing this pointer to the NCryptFreeBuffer function.
Flags that modify function behavior. This can be zero (0) or the following value.
||Requests that the key service provider (KSP) not display any user interface. If the provider must display the UI to operate, the call fails and the KSP should set the NTE_SILENT_CONTEXT error code as the last error.|
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 dwFlags parameter contains a value that is not valid.|
||The hProvider parameter is not valid.|
||One or more parameters are not valid.|
||A memory allocation failure occurred.|
A service must not call this function from its StartService Function. If a service calls this function from its StartService function, a deadlock can occur, and the service may stop responding.
|Minimum supported client||Windows Vista [desktop apps | UWP apps]|
|Minimum supported server||Windows Server 2008 [desktop apps | UWP apps]|