Expand Minimize
EN
Deze inhoud is niet beschikbaar in uw taal, maar wel in het Engels.

CryptMemAlloc function

The CryptMemAlloc function allocates memory for a buffer. It is used by all Crypt32.lib functions that return allocated buffers.

Syntax


LPVOID WINAPI CryptMemAlloc(
  _In_  ULONG cbSize
);

Parameters

cbSize [in]

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

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Wincrypt.h

Library

Crypt32.lib

DLL

Crypt32.dll

See also

CryptMemRealloc
CryptMemFree

 

 

Community-inhoud

Toevoegen
Weergeven:
© 2014 Microsoft