Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-11905

CertOpenSystemStoreW is not a function on Windows CE

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.7.0
    • 4.7.0
    • Network
    • None
    • Windows CE 6.0 r3
    • 0a333e3e4f3ceb43ddad74e7a62605072ca1efcc

    Description

      wincrypt.h for Windows CE defines CertOpenSystemStoreW as (this is from STANDARDSDK_500)

      #define CertOpenSystemStoreW(hProv,szSubsystemProtocol) \
      CertOpenStore( \
      CERT_STORE_PROV_SYSTEM_W, \
      0, \
      (hProv), \
      CERT_STORE_NO_CRYPT_RELEASE_FLAG|CERT_SYSTEM_STORE_CURRENT_USER, \
      (const void *) (szSubsystemProtocol) \
      )

      So it cannot be resolved as a function, CertOpenStore should be used instead. One last thing is the function signature for CertOpenStore is;

      HCERTSTORE WINAPI CertOpenStore(
      LPCSTR lpszStoreProvider,
      DWORD dwMsgAndCertEncodingType,
      HCRYPTPROV hCryptProv,
      DWORD dwFlags,
      const void* pvPara
      );

      See http://msdn.microsoft.com/en-us/library/ms937683.aspx . This should be defined as such for Windows CE.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            phartman Peter Hartmann (closed Nokia identity) (Inactive)
            cartman İsmail Dönmez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes