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
CryptReleaseContext
..msdn    Add comment     W32 Constants      Translate this page
The CryptReleaseContext function releases the handle of a cryptographic service provider (CSP) and a key container.
Code examples:
CryptoAPI: Collection of Providers class
Generating random cryptographic keys
How to create MD-5 and SHA-1 hash values from a string
A class that encrypts and decrypts files using Cryptography API Functions
How to fill a buffer with random bytes using Cryptography API Functions
Declaration:
BOOL WINAPI CryptReleaseContext(
  HCRYPTPROV hProv,
  DWORD dwFlags
);

FoxPro declaration:
DECLARE INTEGER CryptReleaseContext IN advapi32;
    INTEGER hProvHandle,;
    INTEGER nReserved

Parameters:
hProv
[in] Handle of a cryptographic service provider (CSP) created by a call to CryptAcquireContext.

dwFlags
[in] Reserved for future use and must be zero. If dwFlags is not set to zero, this function returns FALSE but the CSP is released.
Return value:
If the function succeeds, the return value is nonzero (TRUE).
My comment:
At each call to this function, the reference count on the CSP is reduced by one. When the reference count reaches zero, the context is fully released and it can no longer be used by any function in the application.

After this function has been called, the CSP session is finished and all existing session keys and hash objects created using the hProv handle become invalid. In practice, all of these objects should be destroyed with calls to CryptDestroyKey and CryptDestroyHash before CryptReleaseContext is called.
Word Index links for the CryptReleaseContext :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2004-08-05 20:27:23
Modified: 2004-08-05 20:30:21
Visited in last 7 days: 88
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.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.227.127.109)
12 sec.Function: 'CryptGenRandom'
23 sec.Function: 'CeGetFileSize'
32 sec.Function: 'ImageList_Create'
43 sec.Function: 'FillRect'
55 sec.Function: 'GetDriveType'
1.08 min.Function: 'CeRegCreateKeyEx'
1.28 min.Function: 'CreateRoundRectRgn'
1.47 min.Function: 'PathIsNetworkPath'
1.67 min.Function: 'ShellExecuteEx'
1.85 min.Example: 'How to activate Windows Calculator'
Google
Advertise here!