On 14 May 2014 08:26, Nikolay Sivov bunglehead@gmail.com wrote:
I don't think it makes sense to match msdn here regarding [optional] attribute, and that's why:
- 'optional' without 'defaultvalue' has no effect on headers, as far as I
can see;
- you can't mix 'optional' with required arguments like that, midl will
refuse to process such idl, optional arguments should be at the end of arguments list only;
I didn't try processing this with midl myself, but are you quite sure about that? The d2d1.h in the PSDK has these annotated with "_In_opt_", and presumably it's generated with midl.