propputref attribute
The [propputref] attribute specifies a property-setting function that uses a reference instead of a value.
[propputref [,optional-property-attributes]] return-type function-name( parameters);
Parameters
-
optional-property-attributes
-
Zero or more property attributes.
-
return-type
-
The type of the data returned by the remote procedure.
-
function-name
-
The name of the remote procedure.
-
parameters
-
Zero or more parameters to the remote procedure.
Remarks
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.
Flags
INVOKE_PROPERTYPUTREF
Examples
interface InMyFace : IDispatch
{
[propget,
helpstring("A meaningful comment."),
id(1)] HRESULT Method2([out, retval] YourInterface** ReturnVal);
[propputref,
helpstring("Another meaningful comment."),
id(1)] HRESULT Method2([in] YourPoint* Point);
}
See also