1999-08-07 16:32:33 +02:00
|
|
|
/*
|
|
|
|
* MPR undocumented functions
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "winbase.h"
|
|
|
|
#include "winnetwk.h"
|
|
|
|
#include "debugtools.h"
|
|
|
|
|
2000-11-28 00:54:25 +01:00
|
|
|
DEFAULT_DEBUG_CHANNEL(mpr);
|
1999-08-07 16:32:33 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
* FIXME: The following routines should use a private heap ...
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*****************************************************************
|
2001-07-02 21:59:40 +02:00
|
|
|
* @ [MPR.22]
|
1999-08-07 16:32:33 +02:00
|
|
|
*/
|
|
|
|
LPVOID WINAPI MPR_Alloc( DWORD dwSize )
|
|
|
|
{
|
2000-02-16 23:47:24 +01:00
|
|
|
return HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, dwSize );
|
1999-08-07 16:32:33 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/*****************************************************************
|
2001-07-02 21:59:40 +02:00
|
|
|
* @ [MPR.23]
|
1999-08-07 16:32:33 +02:00
|
|
|
*/
|
|
|
|
LPVOID WINAPI MPR_ReAlloc( LPVOID lpSrc, DWORD dwSize )
|
|
|
|
{
|
|
|
|
if ( lpSrc )
|
2000-02-16 23:47:24 +01:00
|
|
|
return HeapReAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, lpSrc, dwSize );
|
1999-08-07 16:32:33 +02:00
|
|
|
else
|
2000-02-16 23:47:24 +01:00
|
|
|
return HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, dwSize );
|
1999-08-07 16:32:33 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/*****************************************************************
|
2001-07-02 21:59:40 +02:00
|
|
|
* @ [MPR.24]
|
1999-08-07 16:32:33 +02:00
|
|
|
*/
|
|
|
|
BOOL WINAPI MPR_Free( LPVOID lpMem )
|
|
|
|
{
|
|
|
|
if ( lpMem )
|
2000-02-16 23:47:24 +01:00
|
|
|
return HeapFree( GetProcessHeap(), 0, lpMem );
|
1999-08-07 16:32:33 +02:00
|
|
|
else
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*****************************************************************
|
2001-07-02 21:59:40 +02:00
|
|
|
* @ [MPR.25]
|
1999-08-07 16:32:33 +02:00
|
|
|
*/
|
|
|
|
BOOL WINAPI _MPR_25( LPBYTE lpMem, INT len )
|
|
|
|
{
|
|
|
|
FIXME( "(%p, %d): stub\n", lpMem, len );
|
|
|
|
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|