Platform SDK: Win64 Programming Preview

Using New Data Types in Your IDL File

[This is preliminary documentation and subject to change.]

The set of Windows header files includes Basetsd.h, which defines the new data types needed for writing applications that will run on both 32-bit and 64-bit platforms. To use these data types in your interfaces, import Basetsd.h into your IDL file. Do not #include the file or you will end up with multiple definitions at program-compile time.

Alternatively, you can include or import the Basetsd.idl file, provided in the platform SDK, into your IDL file.

For more information on adding system header files to your IDL file, see Importing Files and Type Libraries and Importing System Header Files, in the MIDL Programmers Guide.