/amd64 switch
The /amd64 switch directs the MIDL compiler to generate stub files, or a type library file, for an Advanced Micro Devices 64-bit environment.
midl /amd64
Note
The /x64 switch described by the MIDL.exe command line help has been deprecated. /amd64 should be used instead.