When using the MkTypLib utility, GUIDs are defined in the header file with a macro that can be conditionally compiled to generate either a GUID predefinition or an instantiated GUID. MIDL normally puts GUID predefinitions in its generated header files and only puts GUID instantiations in the file generated by the /iid switch.