mirror of https://github.com/lianthony/NT4.0
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.
42 lines
592 B
42 lines
592 B
#include <sysinc.h>
|
|
#include <rpc.h>
|
|
#include <util.hxx>
|
|
|
|
void __RPC_FAR * __RPC_API
|
|
MIDL_user_allocate(
|
|
size_t Size
|
|
)
|
|
/*++
|
|
|
|
Routine Description:
|
|
|
|
MIDL generated stubs need this routine.
|
|
|
|
Arguments:
|
|
|
|
Size - Supplies the length of the memory to allocate in bytes.
|
|
|
|
Return Value:
|
|
|
|
The buffer allocated will be returned, if there is sufficient memory,
|
|
otherwise, zero will be returned.
|
|
|
|
--*/
|
|
{
|
|
void PAPI * pvBuf;
|
|
|
|
pvBuf = I_RpcAllocate(Size);
|
|
|
|
return(pvBuf);
|
|
}
|
|
|
|
void __RPC_API
|
|
MIDL_user_free (
|
|
void __RPC_FAR *Buf
|
|
)
|
|
{
|
|
|
|
I_RpcFree(Buf);
|
|
|
|
}
|
|
|