Export (0) Print
Expand All

Linking an Installation Application to DIFxAPI

DIFxAPI includes a 32-bit dynamic link library (DLL) that supports x86-based systems and 64-bit DLLs that support x64-based systems and Itanium-based systems. Be aware that the 32-bit DLL does not run under WOW64.

The DIFxAPI components are located in the redist\DIFx subdirectory of the Windows Driver Kit (WDK).

DIFxAPI provides the following:

  • DIFxAPI header file (Difxapi.h)

  • DIFxAPI DLL file (Difxapi.dll)

  • DIFxAPI export library (Difxapi.lib)

  • Sample code that shows how to use the DIFxAPI functions

To build an installation application that uses DIFxAPI:

  • Use a build environment that supports DLLs.

  • If you want to call the Unicode versions of the DIFxAPI functions, define the macro "UNICODE" before including Difxapi.h in the source code that references the DIFxAPI exports. (The ANSI versions of the DIFXAPI functions are called by default.)

  • Include Difxapi.h in source code files that reference the DIFxAPI exports.

  • When an installation application is built, link to the export library (Difxapi.lib).

  • Ship the Difxapi.dll from the redist\DIFx subdirectory of the Windows Driver Kit (WDK) with your application.

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft