The Header File
The header file contains definitions of all data types and operations declared in the IDL file, as well as all data types and operations declared in the files included with the #include directive. Data types from the files imported with the import directive are not replicated to the header file; instead the generated header file contains an include line to the H file generated from the imported file. The header file must be included by all application modules that call the defined operations, implement the defined operations, or manipulate the defined types.
The MIDL compiler switches /header and /out affect the header file.