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:
CryptoAPI: Collection of Providers class
CryptGetDefaultProvider
..msdn    Add comment     W32 Constants      Translate this page
Finds the default cryptographic service provider (CSP) of a specified provider type. The CSP can be the default for either for the current user or for the computer (LocalMachine).
Code examples:
CryptoAPI: Collection of Providers class
Declaration:
BOOL WINAPI CryptGetDefaultProvider(
    DWORD dwProvType,
    DWORD* pdwReserved,
    DWORD dwFlags,
    LPTSTR pszProvName,
    DWORD* pcbProvName
);
FoxPro declaration:
DECLARE INTEGER CryptGetDefaultProvider IN advapi32;
    INTEGER   dwProvType,;
    INTEGER   pdwReserved,;
    INTEGER   dwFlags,;
    STRING  @ pszProvName,;
    INTEGER @ pcbProvName

Parameters:
dwProvType
[in] Specifies the provider type for which the default CSP name is to be found.

pdwReserved
[in] Reserved for future use and must be NULL.

dwFlags
[in] The following flag values are defined: CRYPT_MACHINE_DEFAULT, CRYPT_USER_DEFAULT

pszProvName
[out] Pointer to a null-terminated character string buffer to receive the name of the default CSP.

pcbProvName
[in, out] Pointer to a DWORD value specifying the size, in bytes, of the buffer pointed to by the pszProvName parameter.
Return value:
If the function succeeds, the return value is nonzero (TRUE).
My comment:
#DEFINE PROV_RSA_FULL 1
#DEFINE PROV_RSA_SIG 2
#DEFINE PROV_DSS 3
#DEFINE PROV_FORTEZZA 4
#DEFINE PROV_MS_EXCHANGE 5
#DEFINE PROV_SSL 6
#DEFINE PROV_RSA_SCHANNEL 12
#DEFINE PROV_DSS_DH 13
#DEFINE PROV_EC_ECDSA_SIG 14
#DEFINE PROV_EC_ECNRA_SIG 15
#DEFINE PROV_EC_ECDSA_FULL 16
#DEFINE PROV_EC_ECNRA_FULL 17
#DEFINE PROV_SPYRUS_LYNKS 20
Word Index links for the CryptGetDefaultProvider :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2004-08-05 14:21:39
Modified: 2004-08-05 14:25:12
Visited in last 7 days: 19
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.224.13.210)
5 sec.Function: 'CeGetSpecialFolderPath'
10 sec.Function: 'CreateDIBSection'
17 sec.Function: 'DeleteFile'
24 sec.Function: 'CreateFileTransacted'
30 sec.Function: 'CryptGetHashParam'
36 sec.Function: 'CeGetStoreInformation'
42 sec.Function: 'GdipGetPropertyCount'
49 sec.
Function group: 'Shell Lightweight Utility APIs -- string functions'
56 sec.Function: 'DestroyPhysicalMonitors'
1.05 min.Function: 'GetMenu'
Google
Advertise here!