 |
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: |
 |
|
|
 |
 |
| 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: |
 |
|
 |
 |
| • |
 |
| Created: | 2004-08-05 20:24:18 | | Modified: | 2004-08-05 20:26:24 | Visited in last 7 days: 24 |