CryptUIDlgViewCertificateW function (cryptuiapi.h)

The CryptUIDlgViewCertificate function presents a dialog box that displays a specified certificate.

Syntax

BOOL CryptUIDlgViewCertificateW(
  [in]  PCCRYPTUI_VIEWCERTIFICATE_STRUCTW pCertViewInfo,
  [out] BOOL                              *pfPropertiesChanged
);

Parameters

[in] pCertViewInfo

A pointer to a CRYPTUI_VIEWCERTIFICATE_STRUCT structure that contains information about the certificate to view.

[out] pfPropertiesChanged

Indicates whether any certificate properties were modified by the caller.

Return value

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.

Remarks

Note

The cryptuiapi.h header defines CryptUIDlgViewCertificate as an alias that automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that is not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header cryptuiapi.h
Library Cryptui.lib
DLL Cryptui.dll

See also

CRYPTUI_VIEWCERTIFICATE_STRUCT