CryptMemRealloc function (wincrypt.h)
The CryptMemRealloc function frees the memory currently allocated for a buffer and allocates memory for a new buffer.
Syntax
LPVOID CryptMemRealloc(
[in] LPVOID pv,
[in] ULONG cbSize
);
Parameters
[in] pv
A pointer to a currently allocated buffer.
[in] cbSize
Number of bytes to be allocated.
Return value
Returns a pointer to the buffer allocated. If the function fails, NULL is returned. When you have finished using the buffer, free the memory by calling the CryptMemFree function.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | wincrypt.h |
Library | Crypt32.lib |
DLL | Crypt32.dll |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for