MSDN Library
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.


Windows CE 3.0

This function sets the EKU property for the certificate. Use of this function replaces any EKUs associated with the certificate. To add a single EKU usage without changing existing usages, use the CertAddEnhancedKeyUsageIdentifier function. To delete as single EKU usage, use CertRemoveEnhancedKeyUsageIdentifier function.

BOOL WINAPI CertSetEnhancedKeyUsage(


[in] Pointer to the CERT_CONTEXT structure of the specified certificate.
[in] Pointer to a CERT_ENHKEY_USAGE structure that contains an array of enhanced key usage OIDs to be set as extended properties of the certificate.

Return Values

If the function succeeds, the return value is nonzero (TRUE).

If the function fails, the return value is zero (FALSE).

For extended error information, call the GetLastError function.


Runs on Versions Defined in Include Link to
Windows CE OS 3.0 or later Wincrypt.h   Crypt32.lib
Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

CertAddEnhancedKeyUsageIdentifier, CertGetEnhancedKeyUsage. CertRemoveEnhancedKeyUsageIdentifier, CERT_CONTEXT, CERT_ENHKEY_USAGE

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.

© 2016 Microsoft