Yes it is possible.
http://www.codeproject.com/Articles/1045674/Load-EXE-as-DLL-Mission-Possible
The idea is a) to patch the IAT and b) to call the CRT before calling your exports.
More Related Contents:
- Reading a character with scanf_s
- How to use kbhit and getch (C programming) [closed]
- How to build a DLL from the command line in Windows using MSVC
- Should C compilers immediately free "further unused" memories? [closed]
- What is the difference between ‘asm’, ‘__asm’ and ‘__asm__’?
- How does the Import Library work? Details?
- How can one grab a stack trace in C?
- what’s the differences between r and rb in fopen
- Console application closes immediately after opening in visual studio
- LPCSTR, LPCTSTR and LPTSTR
- C4996 (function unsafe) warning for strcpy but not for memcpy
- How to get screenshot of a window as bitmap object in C++?
- Can I get Unix’s pthread.h to compile in Windows?
- How to check if a pointer is valid? [duplicate]
- c programming check if key pressed without stopping program
- Visual Studio 2010’s strange “warning LNK4042”
- How to use MSVC intrinsics to get the equivalent of this GCC code?
- What is the purpose of the _chkstk() function?
- VC++ fatal error LNK1168: cannot open filename.exe for writing
- Is it possible to call a non-exported function that resides in an exe?
- Building a shared library using gcc on Linux and MinGW on Windows
- How to check if a file is already open by another process in C?
- Terminate a process tree (C for Windows)
- how to use gettimeofday() or something equivalent with Visual Studio C++ 2008?
- Visual Studio debugger error: Unable to start program Specified file cannot be found
- Regex.h for windows
- How do I get at the exception information when using MiniDumpWriteDump out-of-process?
- How to get the %AppData% folder in C?
- How to make win32 console recognize ANSI/VT100 escape sequences in `c`?
- Execute program capturing screenshots from windows service