How can I load an EXE/DLL file as a data?

How can I load an EXE/DLL file as a data?

Postby OT » Sun Dec 10, 2006 8:44 pm

There's a user space equivalent call LoadLibraryEx(LOAD_LIBRARY_AS_DATAFILE, ...). I need to do the same in kernel space.
OT
 
Posts: 9
Joined: Tue Jul 18, 2006 11:52 am

Postby VDO » Sun Dec 10, 2006 10:54 pm

Try EngMapFile or EngLoadModule/EngLoadModuleForWrite -> EngMapModule

Also this should work if you are in a process context:

ZwCreateFile -> ZwCreateSection(..., FileHandle) -> ZwMapViewOfSection
VDO
Site Admin
 
Posts: 552
Joined: Mon May 01, 2006 10:34 am
Location: Dublin, Ireland


Return to Architecture, design and implementation

Who is online

Users browsing this forum: No registered users and 0 guests

cron