You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.5 KiB
57 lines
1.5 KiB
//+---------------------------------------------------------------------------
|
|
//
|
|
// Microsoft Windows NT Security
|
|
// Copyright (C) Microsoft Corporation, 1997 - 1999
|
|
//
|
|
// File: memory.cpp
|
|
//
|
|
// Contents: Crypt32 Memory Management Routines
|
|
//
|
|
// History: 22-Jul-97 kirtd Created
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
#include <global.hxx>
|
|
//+---------------------------------------------------------------------------
|
|
//
|
|
// Function: CryptMemAlloc
|
|
//
|
|
// Synopsis: Allocates memory
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
LPVOID WINAPI CryptMemAlloc (
|
|
IN ULONG cbSize
|
|
)
|
|
{
|
|
return( malloc( cbSize ) );
|
|
}
|
|
|
|
//+---------------------------------------------------------------------------
|
|
//
|
|
// Function: CryptMemRealloc
|
|
//
|
|
// Synopsis: reallocates memory
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
LPVOID WINAPI CryptMemRealloc (
|
|
IN LPVOID pv,
|
|
IN ULONG cbSize
|
|
)
|
|
{
|
|
return( realloc( pv, cbSize ) );
|
|
}
|
|
|
|
//+---------------------------------------------------------------------------
|
|
//
|
|
// Function: CryptMemFree
|
|
//
|
|
// Synopsis: free memory
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
VOID WINAPI CryptMemFree (
|
|
IN LPVOID pv
|
|
)
|
|
{
|
|
free( pv );
|
|
}
|
|
|
|
|