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.
55 lines
1.5 KiB
55 lines
1.5 KiB
//+-------------------------------------------------------------------------
|
|
//
|
|
// 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);
|
|
}
|