Top Description Fields Methods
com.sun.jna.platform.win32

public Interface Cryptui

extends StdCallLibrary
Imports
com.sun.jna.Native, .PointerType, com.sun.jna.platform.win32.WinDef.HWND, .WinNT.HANDLE, com.sun.jna.platform.win32.WinCrypt.*, com.sun.jna.win32.StdCallLibrary, .W32APIOptions

Cryptui.dll Interface.
Author
roshan[dot]muralidharan[at]cerner[dot]com

Field Summary

Modifier and TypeField and Description
public static final Cryptui
Inherited from com.sun.jna.win32.StdCallLibrary:
FUNCTION_MAPPERSTDCALL_CONVENTION

Method Summary

Modifier and TypeMethod and Description
public WinCrypt.CERT_CONTEXT.ByReference

Returns:

Returns a pointer to the selected certificate context. If no certificate was selected, NULL is returned. When you have finished using the certificate, free the certificate context by calling the CertFreeCertificateContext function.
CryptUIDlgSelectCertificateFromStore
(WinCrypt.HCERTSTORE
Handle of the certificate store to be searched.
hCertStore
,
WinDef.HWND
Handle of the window for the display. If NULL, defaults to the desktop window.
hwnd
,
String
String used as the title of the dialog box. If NULL, the default title, "Select Certificate," is used.
pwszTitle
,
String
Text statement in the selection dialog box. If NULL, the default phrase, "Select a certificate you want to use," is used.
pwszDisplayString
,
int
Flags that can be combined to exclude columns of the display.
dwDontUseColumn
,
int
Currently not used and should be set to 0.
dwFlags
,
PointerType
Reserved for future use.
pvReserved
)

The CryptUIDlgSelectCertificateFromStore function displays a dialog box that allows the selection of a certificate from a specified store.

Field Detail

INSTANCEback to summary
public static final Cryptui INSTANCE

Method Detail

CryptUIDlgSelectCertificateFromStoreback to summary
public WinCrypt.CERT_CONTEXT.ByReference CryptUIDlgSelectCertificateFromStore(WinCrypt.HCERTSTORE hCertStore, WinDef.HWND hwnd, String pwszTitle, String pwszDisplayString, int dwDontUseColumn, int dwFlags, PointerType pvReserved)

The CryptUIDlgSelectCertificateFromStore function displays a dialog box that allows the selection of a certificate from a specified store.

Parameters
hCertStore:WinCrypt.HCERTSTORE

Handle of the certificate store to be searched.

hwnd:WinDef.HWND

Handle of the window for the display. If NULL, defaults to the desktop window.

pwszTitle:String

String used as the title of the dialog box. If NULL, the default title, "Select Certificate," is used.

pwszDisplayString:String

Text statement in the selection dialog box. If NULL, the default phrase, "Select a certificate you want to use," is used.

dwDontUseColumn:int

Flags that can be combined to exclude columns of the display.

dwFlags:int

Currently not used and should be set to 0.

pvReserved:PointerType

Reserved for future use.

Returns:WinCrypt.CERT_CONTEXT.ByReference

Returns a pointer to the selected certificate context. If no certificate was selected, NULL is returned. When you have finished using the certificate, free the certificate context by calling the CertFreeCertificateContext function.