The Microsoft RPC MIDL compiler offers an operating mode that makes it possible to provide one file containing both the IDL attributes and selected ACF attributes. You can supply the ACF attributes auto_handle and implicit_handle in the IDL file when you use the MIDL compiler switch /app_config.