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

Sources File

Sources File

Prior to building the newly created stream driver, you should also check the Sources file in the root folder of the DLL subproject to ensure that it includes all necessary files in the build process. As mentioned in Chapter 2, the Sources file configures the compiler and linker to build the desired binary files. Table 6-2 summarizes the most important Sources file directives for device drivers.

Table 6-2 Important Sources file directives for device drivers

Directive Description
WINCEOEM=1 Causes additional header files and import libraries from the %_WINCEROOT%Public tree to be included to enable the driver to make platform-dependent function calls, such as KernelIoControl, InterruptInitialize, and InterruptDone.
TARGETTYPE=DYNLINK Instructs the Build tool to create a DLL.
DEFFILE=<Driver Def File Name>.def References the module-definition file that defines the exported DLL functions.
DLLENTRY=<DLL Main Entry Point> Specifies the function that is called when processes and threads attach and detach to and from the driver DLL (Process Attach, Process Detach, Thread Attach, and Thread Detach).

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


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