Windows NT 4.0 source code leak
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.
 
 
 
 
 
 

46 lines
1.0 KiB

/* --------------------------------------------------------------------
Microsoft OS/2 LAN Manager
Copyright(c) Microsoft Corp., 1990
-------------------------------------------------------------------- */
/* --------------------------------------------------------------------
File: memory.cxx
Description:
This file contains the _new and _delete routines for memory management
in the RPC runtime for the NT system. Rather than using the memory
management provided by the C++ system (which does not exist of NT anyway),
we will write our own.
History:
mikemon ??-??-?? Beginning of time (at least for this file).
mikemon 12-31-90 Upgraded the comments.
-------------------------------------------------------------------- */
#include <nt.h>
#include <ntrtl.h>
#include <nturtl.h>
void *
__nw (
IN unsigned int size
)
{
return(RtlAllocateHeap(RtlProcessHeap(), 0, size));
}
void
__dl (
IN void * obj
)
// This routine deserves no comment.
{
RtlFreeHeap(RtlProcessHeap(), 0, obj);
}