The CryptGetDefaultOIDDllList function acquires the list of the names of DLL files that contain registered default object identifier (OID) functions for a specified function set and encoding type.
BOOL CryptGetDefaultOIDDllList( HCRYPTOIDFUNCSET hFuncSet, DWORD dwEncodingType, WCHAR *pwszDllList, DWORD *pcchDllList );
Function set handle previously obtained by a call to CryptInitOIDFunctionSet.
Specifies the encoding type to be matched. Currently, only X509_ASN_ENCODING and PKCS_7_ASN_ENCODING are being used; however, additional encoding types may be added in the future. To match both current encoding types, use:
X509_ASN_ENCODING | PKCS_7_ASN_ENCODING
A pointer to a buffer to receive the list of zero or more null-terminated file names. The returned list is terminated with a terminating NULL character. For example, a list of two names could be:
L"first.dll\0" L"second.dll\0" L"\0"
To retrieve the number of wide characters the buffer must hold, this parameter can be NULL. For more information, see Retrieving Data of Unknown Length.
A pointer to a DWORD that specifies the size, in wide characters, of the returned list pointed to by the pwszDllList parameter. When the function returns, the variable pointed to by the pcchDllList parameter contains the number of wide characters stored in the buffer.
If the function succeeds, the function returns nonzero (TRUE).
If the function fails, it returns zero (FALSE). For extended error information, call GetLastError.
This function has the following error codes.
||If the buffer specified by the pwszDllList parameter is not large enough to hold the returned data, the function sets the ERROR_MORE_DATA code and stores the required buffer size, in wide characters, in the variable pointed to by pcchDllList.|
|Minimum supported client||Windows XP [desktop apps | UWP apps]|
|Minimum supported server||Windows Server 2003 [desktop apps | UWP apps]|