Using Win32 functions in Visual FoxPro Image Gallery
Cryptography Reference
..msdn
CertCloseStore
CertFindCertificateInStore
CertFreeCertificateContext
CertOpenSystemStore
CryptAcquireContext
CryptBinaryToString
CryptCreateHash
CryptDecrypt
CryptDeriveKey
CryptDestroyHash
CryptDestroyKey
CryptEncrypt
CryptEnumProviders
CryptEnumProviderTypes
CryptExportKey
CryptGenKey
CryptGenRandom
CryptGetDefaultProvider
CryptGetHashParam
CryptGetKeyParam
CryptGetProvParam
CryptHashData
CryptImportKey
CryptProtectData
CryptReleaseContext
CryptStringToBinary
CryptUnprotectData
WinVerifyTrust
Code examples:
CertOpenSystemStore
..msdn    Add comment     W32 Constants      Translate this page
This is a simplified function that opens the most common system certificate store.
Code examples:
Declaration:
HCERTSTORE WINAPI CertOpenSystemStore(
    HCRYPTPROV_LEGACY hprov,
    LPTCSTR szSubsystemProtocol
);
FoxPro declaration:
DECLARE INTEGER CertOpenSystemStore IN crypt32;
    INTEGER hprov,;
    STRING szSubsystemProtocol
Parameters:
hprov
[in] This parameter is not used and should be set to NULL.

szSubsystemProtocol
[in] A string that names a system store (CA, MY, ROOT, SPC).
Return value:
If the function succeeds, the function returns a handle to the certificate store.
My comment:
If the system store name provided in szSubsystemProtocol parameter is not the name of an existing system store, a new system store will be created and used.

After use, the store should be closed by using CertCloseStore.

#DEFINE CERT_CLOSE_STORE_FORCE_FLAG 1
#DEFINE CERT_CLOSE_STORE_CHECK_FLAG 2

LOCAL hStore
hStore = CertOpenSystemStore(0, "CA")
? "Cert.store handle:", hStore

IF hStore = 0
        ? "Error:", GetLastError()
ELSE
        = CertCloseStore(hStore, 0)
ENDIF
Word Index links for the CertOpenSystemStore :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2007-01-11 16:16:49
Modified: 2007-01-11 16:21:57
Visited in last 7 days: 13
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.80.132.10)
13 sec.
Function group: 'Raw Input'
29 sec.Function: 'InternetCanonicalizeUrl'
43 sec.Function: 'AVIStreamStart'
57 sec.Function: 'GdipGetMatrixElements'
1.18 min.Function: 'StartService'
1.43 min.Function: 'waveInGetNumDevs'
1.67 min.
Function group: 'Extensible Storage Engine (ESE, Jet Blue)'
1.9 min.Function: 'GetClipCursor'
2.13 min.Function: 'SHCreateDirectory'
2.37 min.
Function group: 'Shell Lightweight Utility APIs -- misc. functions'
Google
Advertise here!