Directory CeApiSpy contains sources of CE API Spy.
This sample Spy is monitoring CreateFile, CreateProcess and LoadLibrary API calls.

Directory MissingDllSample contains a trivial sample of
and application and DLL.

To test Spy, build Spy and MissingDll projects and copy CeApiSpy.exe, 
CeApiSpyDll.dll and MissingDllApp.exe to the device (don't copy MissingDll.dll).
Then start CeApiSpy.exe and invoke Start command, then start MissingDllApp.exe.
The application should fail to start because of missing DLL.
The Spy should display traces of failed CreateFile call.