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:
A class that encrypts and decrypts files using Cryptography API Functions
CryptoAPI: Collection of Providers class
Generating random cryptographic keys
How to create MD-5 and SHA-1 hash values from a string
How to fill a buffer with random bytes using Cryptography API Functions
CryptAcquireContext
..msdn    Add comment     W32 Constants      Translate this page
The CryptAcquireContext function is used to acquire a handle to a particular key container within a particular cryptographic service provider (CSP). This returned handle is used in calls to CryptoAPI functions that use the selected CSP.
Code examples:
Generating random cryptographic keys
A class that encrypts and decrypts files using Cryptography API Functions
How to create MD-5 and SHA-1 hash values from a string
CryptoAPI: Collection of Providers class
How to fill a buffer with random bytes using Cryptography API Functions
Declaration:
BOOL WINAPI CryptAcquireContext(
  HCRYPTPROV* phProv,
  LPCTSTR pszContainer,
  LPCTSTR pszProvider,
  DWORD dwProvType,
  DWORD dwFlags
);
FoxPro declaration:
DECLARE INTEGER CryptAcquireContext IN advapi32;
    INTEGER @ hProvHandle,;
    STRING    cContainer, ;
    STRING    cProvider,;
    INTEGER   nProvType,;
    INTEGER   nFlags

Parameters:
phProv
[out] Pointer to a handle of a CSP.

pszContainer
[in] Key container name.

pszProvider
[in] A null-terminated string that specifies the name of the CSP to be used.

dwProvType
[in] Specifies the type of provider to acquire.

dwFlags
[in] Flag values.
Return value:
If the function succeeds, the function returns nonzero (TRUE).
My comment:
When you have finished using the CSP, release the handle by calling the CryptReleaseContext function.
Word Index links for the CryptAcquireContext :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2004-08-05 20:24:18
Modified: 2004-08-05 20:26:24
Visited in last 7 days: 31
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)
7 sec.Function: 'ExitWindows'
12 sec.Function: 'ConnectNamedPipe'
19 sec.Function: 'AddClipboardFormatListener'
25 sec.Function: 'GetKeyboardLayoutName'
32 sec.Function: 'GdipCreateFromHDC'
38 sec.
Function group: 'Shell Lightweight Utility APIs -- misc. functions'
44 sec.Function: 'GetLocalTime'
49 sec.Function: 'GdiplusStartup'
54 sec.Function: 'GetClipboardFormatName'
1 min.Function: 'CM_Locate_DevNode_Ex'
Google
Advertise here!