ldrNative-win32.cpp revision a595bebfc109f595e64e843f8faf9cfb97f35564
/* $Id$ */
/** @file
* innotek Portable Runtime - Binary Image Loader, Win32 native.
*/
/*
* Copyright (C) 2006-2007 innotek GmbH
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License as published by the Free Software Foundation,
* in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
* distribution. VirtualBox OSE is distributed in the hope that it will
* be useful, but WITHOUT ANY WARRANTY of any kind.
*/
/*******************************************************************************
* Header Files *
*******************************************************************************/
#define LOG_GROUP RTLOGGROUP_LDR
#include <Windows.h>
{
/*
* Do we need to add an extension?
*/
if (!RTPathHaveExt(pszFilename))
{
if (!psz)
return VERR_NO_MEMORY;
pszFilename = psz;
}
/*
* Attempt load.
*/
if (hmod)
{
return VINF_SUCCESS;
}
return RTErrConvertFromWin32(GetLastError());
}
DECLCALLBACK(int) rtldrNativeGetSymbol(PRTLDRMODINTERNAL pMod, const char *pszSymbol, void **ppvValue)
{
if (pfn)
{
return VINF_SUCCESS;
}
return RTErrConvertFromWin32(GetLastError());
}
{
{
return VINF_SUCCESS;
}
return RTErrConvertFromWin32(GetLastError());
}