windows-nt/Source/XPSP1/NT/com/ole32/dcomss/olescm/rpcalloc.cxx

56 lines
1.4 KiB
C++
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
//+-------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1992 - 1993.
//
// File: rpcalloc.cxx
//
// Contents: functions for RPC memory allocation
//
// Functions: MIDL_user_allocate
// MIDL_user_free
//
// History: 24-Apr-93 Ricksa Created
//
//--------------------------------------------------------------------------
#include "act.hxx"
//+-------------------------------------------------------------------------
//
// Function: MIDL_user_allocate
//
// Synopsis: Allocate memory for RPC
//
// Arguments: [cNeeded] - bytes needed
//
// Returns: Pointer to block allocated
//
// History: 24-Apr-93 Ricksa Created
// 17-Feb-94 AlexT Use PrivMemAlloc
//
//--------------------------------------------------------------------------
extern "C" void * __RPC_API MIDL_user_allocate(size_t cb)
{
return(PrivMemAlloc8(cb));
}
//+-------------------------------------------------------------------------
//
// Function: MIDL_user_free
//
// Synopsis: Free memory allocated by call above
//
// Arguments: [pv] - memory block to free
//
// History: 24-Apr-93 Ricksa Created
// 17-Feb-94 AlexT Use PrivMemFree
//
//--------------------------------------------------------------------------
extern "C" void __RPC_API MIDL_user_free(void *pv)
{
PrivMemFree(pv);
}