Exporting Commands from a Debugger Extension DLL (Windows Embedded CE 6.0)
1/5/2010
This topic describes how to create a .def file that exports commands from the sample hello_ext debugger extension. The steps in this topic must be complete before your build your debugger extension DLL. Before you begin to create the .def file, you must complete the steps in Implementing the Functions Required for a Debugger Extension DLL.
To create a .def file for the debugger extension DLL
In Visual Studio 2005, in Solution Explorer, right-click hello_ext, choose Add, and then choose New Item.
In the Categories window, choose Code.
In the Templates window, choose Module-Definition File (.def), and in the Name box, type "hello_ext".
Choose Add.
In Solution Explorer, double-click hello_ext.def.
To export functions from the DLL, add the following lines of code to hello_ext.def:
EXPORTS WinDbgExtensionDllInit WinDbgExtensionDllShutdown ExtensionApiVersion hello
On the File menu, choose Save hello_ext.def.
You are now ready to build the debugger extension DLL. For more information, see How to Create and Debug a Debugger Extension.