MIDL (Constant) References
问题 Are there no constant references in MIDL method declarations???? eg. [id(1), helpstring("My Method")] HRESULT MyMethod( [in] IID & const rclsid ); for HRESULT MyMethod( IID const &rclsid ); 回答1: MIDL doesn't really support reference parameters, it only supports "in" and "out" parameters. So if you DO pass in a reference, it's just syntactic sugar for a pointer to the value (the issue is observability - if you have a callback function or interface in our method signature, changes to a