This sample shows how to setup a hook of kernel32.dll!CreateFileW
within another process.

The project InjectMe.dpr produces a DLL that is injected into
a process.