Skip to end of metadata
Go to start of metadata

Example Startup Shim and Header

Below is an example of a startup shim that would be put in place to verify if an external service or application was already running before the virtual application could be launched.

The following ifdef block is the standard way of creating macros which make exporting from a DLL simpler. All files within this DLL are compiled with the DUMMYDLL_EXPORTS symbol defined on the command line. This symbol should not be defined on any project that uses this DLL. This way any other project whose source files include this file see DUMMYDLL_API functions as being imported from a DLL, whereas this DLL sees symbols defined with this macro as being exported.

 Below is the example header file:

Below is the example DLL Startup Shim:

  • No labels