 |
CryptStringToBinary ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Converts a formatted string into an array of bytes. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
BOOL WINAPI CryptStringToBinary(
LPCTSTR pszString,
DWORD cchString,
DWORD dwFlags,
BYTE* pbBinary,
DWORD* pcbBinary,
DWORD* pdwSkip,
DWORD* pdwFlags
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER CryptStringToBinary IN crypt32;
STRING @pszString,;
LONG cchString,;
LONG dwFlags,;
STRING @pbBinary,;
LONG @pcbBinary,;
LONG pdwSkip,;
LONG pdwFlags
|
 |
 |
 |
| Parameters: |
 |
pszString
[in] A pointer to a string that contains the formatted string to be converted.
cchString
[in] The number of characters of the formatted string to be converted, not including the terminating NULL character. If this parameter is zero, pszString is considered to be a null-terminated string.
dwFlags
[in] Indicates the format of the string to be converted.
pbBinary
[in] A pointer to a buffer that receives the returned sequence of bytes.
pcbBinary
[in, out] A pointer to a DWORD value that, on entry, contains the size, in bytes, of the pbBinary buffer.
pdwSkip
[out] A pointer to a DWORD value that receives the number of characters skipped to reach the beginning of the actual base64 or hex strings.
pdwFlags
[out] A pointer to a DWORD value that receives the flags actually used in the conversion. |
 |
 |
| Return value: |
 |
| If the function succeeds, the return value is nonzero (TRUE). |
 |
 |
| Usage: |
 |
nFlags=CRYPT_STRING_BASE64 && 0x0001
CryptStringToBinary( @cSrc, LEN(m.cSrc),;
nFlags, @cDst, @nBufsize, 0,0 )
|
 |
 |
| My comment: |
 |
Can be used for base64 decoding.
See also: CryptBinaryToString |
 |
 |
| Word Index links for the CryptStringToBinary : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2006-05-04 21:25:34 | | Modified: | 2010-04-06 10:38:41 | Visited in last 7 days: 18 |