The ApiSpy is a utility you can use to examine an application's interactions with the PixeLINK Api. It is a DLL that looks to Windows -- for all intents and purposes -- exactly like the real PixeLINK API DLL (viz. PxLApi40.dll), and therefore, if the ApiSpy is in the search path before the *real* PixeLINK API, it will be loaded and used by Windows. 


When loaded into an application, the ApiSpy loads the real PixeLINK API DLL, and then when PixeLINK API functions are called, the ApiSpy passes them along to the PixeLINK API DLL, and returns the results to the application. 


By sitting between the application and the PixeLINK API DLL, the ApiSpy can log and provide a peek into all activity between an application and the cameras with which it's interacting. 


Two versions of the ApiSpy are provided:


Name
Description

PxLApi40.ApiSpy.x86.dll

32- bit version, for use with 32- bit applications.

PxLApi40.ApiSpy.x64.dll

64- bit version, for use with 64- bit applications.



To install the ApiSpy:

  • Ensure the application is not running.

  • Copy the appropriate ApiSpy (32-bit/64-bit) the same directory (folder) as the application you want to spy on.


  • Rename the dll to be PxLApi40.dll


  • Run the application.


To view the information logged by the ApiSpy log, use Microsoft's DebugView application, available for free here.


If you are running the application under a debugger, the output will appear in the 'Output' window.


The tool, ApiSpyConfig, can be used to filter the functions and features to log.