Your C-language source files must include the header file that will be generated by the MIDL compiler. By default, the generated header file has the same name as the IDL file. You can specify the name of the generated header file with the MIDL compiler command-line option midl /header. Whatever filename you choose, include the generated header file in your C source code.
The generated header file contains directives to include in the following RPC header files:
Header files | Description |
---|---|
RPC.H | RPC types and run-time function prototypes. |
RPCNDR.H | byte, boolean, and small types and data-conversion function prototypes. |