Книга: Microsoft Windows Embedded CE 6.0 Exam Preparation Kit

Exporting Stream Functions

Exporting Stream Functions

Making the stream functions in the driver DLL accessible to external applications requires the linker to export the functions during the build process. C++ provides several options to accomplish this, yet for driver DLLs compatible with Device

Manager, you must export the functions by defining them in the .def file of the DLL subproject. The linker uses the .def file to determine which functions to export and how to do so. For a standard stream driver, you must export the stream interface functions using the prefix that you specify in the driver's source code and registry settings. Figure 6-3 shows a sample .def file for the stream interface skeleton listed in the previous section.


Figure 6-3 A sample .def file for a stream driver

Оглавление книги

Оглавление статьи/книги

Генерация: 1.186. Запросов К БД/Cache: 3 / 0
поделиться
Вверх Вниз