- Added an implementation of LdrFindImageProcAddress.

svn path=/trunk/; revision=8561
This commit is contained in:
David Welch 2004-03-07 04:44:41 +00:00
parent 75860969fe
commit 4a88989b85
2 changed files with 21 additions and 16 deletions

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/* $Id: loader.c,v 1.13 2003/11/24 14:19:52 gvg Exp $
/* $Id: loader.c,v 1.14 2004/03/07 04:44:41 dwelch Exp $
*
*/
@ -90,6 +90,26 @@ LdrGetProcedureAddress (IN PVOID BaseAddress,
return STATUS_PROCEDURE_NOT_FOUND;
}
PVOID STDCALL
EngFindImageProcAddress(IN HANDLE Module,
IN LPSTR ProcName)
{
PVOID Function;
NTSTATUS Status;
ANSI_STRING ProcNameString;
RtlInitAnsiString(&ProcNameString, ProcName);
Status = LdrGetProcedureAddress(Module,
&ProcNameString,
0,
&Function);
if (!NT_SUCCESS(Status))
{
return(NULL);
}
return(Function);
}
/*
* @implemented
*/

View file

@ -257,21 +257,6 @@ EngFillPath (
return FALSE;
}
/*
* @unimplemented
*/
PVOID
STDCALL
EngFindImageProcAddress(
IN HANDLE hModule,
IN LPSTR lpProcName
)
{
// www.osr.com/ddk/graphics/gdifncs_0oiw.htm
UNIMPLEMENTED;
return NULL;
}
/*
* @unimplemented
*/