Page is a not externally linkable
incrediBILL - 3:43 am on Oct 24, 2009 (gmt 0)
What you have to do is create a stub DLL for your functions and then do DLL Injection into the target API. You can find a good example of DLL Injection [software.intel.com] on Intel's site.
Kaled, it's been eons since I've done this but whatever you do you cannot patch the shared version of Kernel32.dll because other apps depend on it that could become unstable and/or the next Windows update will whack it.