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:
Generating random cryptographic keys
CryptExportKey
..msdn    Add comment     W32 Constants      Translate this page
Exports a cryptographic key or a key pair from a cryptographic service provider (CSP) in a secure manner.
Code examples:
Generating random cryptographic keys
Declaration:
BOOL WINAPI CryptExportKey(
  _In_     HCRYPTKEY hKey,
  _In_     HCRYPTKEY hExpKey,
  _In_     DWORD dwBlobType,
  _In_     DWORD dwFlags,
  _Out_    BYTE *pbData,
  _Inout_  DWORD *pdwDataLen
);
FoxPro declaration:
DECLARE INTEGER CryptExportKey IN advapi32;
    INTEGER hKey,;
    INTEGER hExpKey,;
    INTEGER dwBlobType,;
    INTEGER dwFlags,;
    STRING @pbData,;
    INTEGER @pdwDataLen
Parameters:
hKey [in]
A handle to the key to be exported.

hExpKey [in]
A handle to a cryptographic key of the destination user.

dwBlobType [in]
Specifies the type of key BLOB to be exported in pbData.

dwFlags [in]
Specifies additional options for the function.

pbData [out]
A pointer to a buffer that receives the key BLOB data.

pdwDataLen [in, out]
A pointer to a DWORD value that, on entry, contains the size, in bytes, of the buffer pointed to by the pbData parameter. When the function returns, this value contains the number of bytes stored in the buffer.
Return value:
If the function succeeds, the function returns nonzero (TRUE).
Usage:
LOCAL nBlobLength, cBuffer
nBlobLength = 0

= CryptExportKey(;
    THIS.hKey, 0, PLAINTEXTKEYBLOB,;
    0, 0, @nBlobLength)
My comment:
See also: CryptImportKey, CryptGenKey
Word Index links for the CryptExportKey :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2013-10-17 16:52:04
Modified: 2013-10-17 17:04:47
Visited in last 7 days: 93
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)
14 sec.Function: 'TextOut'
30 sec.Function: 'SetFileAttributes'
47 sec.Function: 'CeRegQueryInfoKey'
1.03 min.Function: 'GdipGetFontCollectionFamilyCount'
1.32 min.Function: 'GdipFillRectangle'
1.57 min.Function: 'WNetAddConnection'
1.82 min.Function: 'GetIpStatistics'
2.1 min.Function: 'FtpRenameFile'
2.37 min.Function: 'WNetCloseEnum'
2.65 min.Function: 'getprotobyname'
Google
Advertise here!