Interface Crypt32Ext

  • All Superinterfaces:
    com.sun.jna.AltCallingConvention, com.sun.jna.Library, com.sun.jna.win32.StdCall, com.sun.jna.win32.StdCallLibrary

    public interface Crypt32Ext
    extends com.sun.jna.win32.StdCallLibrary
    • Method Detail

      • CertOpenStore

        com.sun.jna.platform.win32.WinCrypt.HCERTSTORE CertOpenStore​(com.sun.jna.platform.win32.WTypes.LPSTR lpszStoreProvider,
                                                                     int dwEncodingType,
                                                                     com.sun.jna.platform.win32.WinCrypt.HCRYPTPROV_LEGACY hCryptProv,
                                                                     int dwFlags,
                                                                     com.sun.jna.platform.win32.WTypes.LPWSTR pvPara)
        The CertOpenStore function opens a certificate store by using a specified store provider type
        Parameters:
        lpszStoreProvider - A pointer to a null-terminated ANSI string that contains the store provider type.
        dwEncodingType - Specifies the certificate encoding type and message encoding type. Encoding is used only when the dwSaveAs parameter of the CertSaveStore function contains CERT_STORE_SAVE_AS_PKCS7. Otherwise, the dwMsgAndCertEncodingType parameter is not used.
        hCryptProv - This parameter is not used and should be set to NULL.
        dwFlags - These values consist of high-word and low-word values combined by using a bitwise-OR operation. See CERT_STORE_*_FLAG and CERT_SYSTEM_STORE_* constants.
        pvPara - A 32-bit value that can contain additional information for this function. The contents of this parameter depends on the value of the lpszStoreProvider and other parameters.
        Returns:
        If the function succeeds, the function returns a handle to the certificate store. When you have finished using the store, release the handle by calling the Crypt32.CertCloseStore(WinCrypt.HCERTSTORE, int) function. If the function fails, it returns NULL. For extended error information, call Native.getLastError().
        See Also:
        MSDN