[propputref [,optional-property-attributes]] return-type func-name( parameters);
interface InMyFace : IDispatch
{
[propget, helpstring("A meaningful comment."), id(1)]
HRESULT Method2([out, retval] InYourFace** ReturnVal);
[propputref, helpstring("Another meaningful comment."), id(1)]
HRESULT Method2([in] InYourFace* Point);
The propputref attribute specifies a property-setting function that uses a reference instead of a value.
A function that has the propputref attribute must also have, as its last parameter, a pointer that has the in attribute.
The property must have the same name as the function. At most, one of propget, propput and propputref attributes can be specified for a function.
INVOKE_PROPERTYPUTREF
TYPEFLAGS, ODL File Syntax, ODL File Example, Generating a Type Library With MIDL, Differences Between MIDL and MKTYPLIB