Commit 18c350ae authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

idl: Remove 'optional' for 'defaultvalue' non-VARIANT arguments.

parent 62ee13c5
...@@ -256,7 +256,7 @@ library Scripting ...@@ -256,7 +256,7 @@ library Scripting
HRESULT Write([in] BSTR Text); HRESULT Write([in] BSTR Text);
[id(0x00002718)] [id(0x00002718)]
HRESULT WriteLine([in, optional, defaultvalue("")] BSTR Text); HRESULT WriteLine([in, defaultvalue("")] BSTR Text);
[id(0x00002719)] [id(0x00002719)]
HRESULT WriteBlankLines([in] long Lines); HRESULT WriteBlankLines([in] long Lines);
...@@ -324,17 +324,17 @@ library Scripting ...@@ -324,17 +324,17 @@ library Scripting
HRESULT Type([out, retval] BSTR* pbstrType); HRESULT Type([out, retval] BSTR* pbstrType);
[id(0x000004b0)] [id(0x000004b0)]
HRESULT Delete([in, optional, defaultvalue(0)] VARIANT_BOOL Force); HRESULT Delete([in, defaultvalue(0)] VARIANT_BOOL Force);
[id(0x000004b2)] [id(0x000004b2)]
HRESULT Copy([in] BSTR Destination, [in, optional, defaultvalue(-1)] VARIANT_BOOL OverWriteFiles); HRESULT Copy([in] BSTR Destination, [in, defaultvalue(-1)] VARIANT_BOOL OverWriteFiles);
[id(0x000004b4)] [id(0x000004b4)]
HRESULT Move([in] BSTR Destination); HRESULT Move([in] BSTR Destination);
[id(0x0000044c)] [id(0x0000044c)]
HRESULT OpenAsTextStream([in, optional, defaultvalue(1)] IOMode IOMode, HRESULT OpenAsTextStream([in, defaultvalue(1)] IOMode IOMode,
[in, optional, defaultvalue(0)] Tristate Format, [out, retval] ITextStream** ppts); [in, defaultvalue(0)] Tristate Format, [out, retval] ITextStream** ppts);
} }
[ [
...@@ -396,10 +396,10 @@ library Scripting ...@@ -396,10 +396,10 @@ library Scripting
HRESULT GetSpecialFolder([in] SpecialFolderConst SpecialFolder, [out, retval] IFolder** ppfolder); HRESULT GetSpecialFolder([in] SpecialFolderConst SpecialFolder, [out, retval] IFolder** ppfolder);
[id(0x000004b0)] [id(0x000004b0)]
HRESULT DeleteFile([in] BSTR FileSpec, [in, optional, defaultvalue(0)] VARIANT_BOOL Force); HRESULT DeleteFile([in] BSTR FileSpec, [in, defaultvalue(0)] VARIANT_BOOL Force);
[id(0x000004b1)] [id(0x000004b1)]
HRESULT DeleteFolder([in] BSTR FolderSpec, [in, optional, defaultvalue(0)] VARIANT_BOOL Force); HRESULT DeleteFolder([in] BSTR FolderSpec, [in, defaultvalue(0)] VARIANT_BOOL Force);
[id(0x000004b4), helpstring("Move a file"), helpcontext(0x00214bab)] [id(0x000004b4), helpstring("Move a file"), helpcontext(0x00214bab)]
HRESULT MoveFile([in] BSTR Source, [in] BSTR Destination); HRESULT MoveFile([in] BSTR Source, [in] BSTR Destination);
...@@ -409,23 +409,23 @@ library Scripting ...@@ -409,23 +409,23 @@ library Scripting
[id(0x000004b2)] [id(0x000004b2)]
HRESULT CopyFile([in] BSTR Source, [in] BSTR Destination, HRESULT CopyFile([in] BSTR Source, [in] BSTR Destination,
[in, optional, defaultvalue(-1)] VARIANT_BOOL OverWriteFiles); [in, defaultvalue(-1)] VARIANT_BOOL OverWriteFiles);
[id(0x000004b3)] [id(0x000004b3)]
HRESULT CopyFolder([in] BSTR Source, [in] BSTR Destination, HRESULT CopyFolder([in] BSTR Source, [in] BSTR Destination,
[in, optional, defaultvalue(-1)] VARIANT_BOOL OverWriteFiles); [in, defaultvalue(-1)] VARIANT_BOOL OverWriteFiles);
[id(0x00000460)] [id(0x00000460)]
HRESULT CreateFolder([in] BSTR Path, [out, retval] IFolder** ppfolder); HRESULT CreateFolder([in] BSTR Path, [out, retval] IFolder** ppfolder);
[id(0x0000044d)] [id(0x0000044d)]
HRESULT CreateTextFile([in] BSTR FileName, [in, optional, defaultvalue(-1)] VARIANT_BOOL Overwrite, HRESULT CreateTextFile([in] BSTR FileName, [in, defaultvalue(-1)] VARIANT_BOOL Overwrite,
[in, optional, defaultvalue(0)] VARIANT_BOOL Unicode, [out, retval] ITextStream** ppts); [in, defaultvalue(0)] VARIANT_BOOL Unicode, [out, retval] ITextStream** ppts);
[id(0x0000044c)] [id(0x0000044c)]
HRESULT OpenTextFile([in] BSTR FileName, [in, optional, defaultvalue(1)] IOMode IOMode, HRESULT OpenTextFile([in] BSTR FileName, [in, defaultvalue(1)] IOMode IOMode,
[in, optional, defaultvalue(0)] VARIANT_BOOL Create, [in, defaultvalue(0)] VARIANT_BOOL Create,
[in, optional, defaultvalue(0)] Tristate Format, [in, defaultvalue(0)] Tristate Format,
[out, retval] ITextStream** ppts); [out, retval] ITextStream** ppts);
} }
...@@ -522,10 +522,10 @@ library Scripting ...@@ -522,10 +522,10 @@ library Scripting
HRESULT Type([out, retval] BSTR* pbstrType); HRESULT Type([out, retval] BSTR* pbstrType);
[id(0x000004b1)] [id(0x000004b1)]
HRESULT Delete([in, optional, defaultvalue(0)] VARIANT_BOOL Force); HRESULT Delete([in, defaultvalue(0)] VARIANT_BOOL Force);
[id(0x000004b3)] [id(0x000004b3)]
HRESULT Copy([in] BSTR Destination, [in, optional, defaultvalue(-1)] VARIANT_BOOL OverWriteFiles); HRESULT Copy([in] BSTR Destination, [in, defaultvalue(-1)] VARIANT_BOOL OverWriteFiles);
[id(0x000004b5)] [id(0x000004b5)]
HRESULT Move([in] BSTR Destination); HRESULT Move([in] BSTR Destination);
...@@ -543,8 +543,8 @@ library Scripting ...@@ -543,8 +543,8 @@ library Scripting
HRESULT Files([out, retval] IFileCollection** ppfiles); HRESULT Files([out, retval] IFileCollection** ppfiles);
[id(0x0000044d)] [id(0x0000044d)]
HRESULT CreateTextFile([in] BSTR FileName, [in, optional, defaultvalue(-1)] VARIANT_BOOL Overwrite, HRESULT CreateTextFile([in] BSTR FileName, [in, defaultvalue(-1)] VARIANT_BOOL Overwrite,
[in, optional, defaultvalue(0)] VARIANT_BOOL Unicode, [out, retval] ITextStream** ppts); [in, defaultvalue(0)] VARIANT_BOOL Unicode, [out, retval] ITextStream** ppts);
} }
[ [
...@@ -558,7 +558,7 @@ library Scripting ...@@ -558,7 +558,7 @@ library Scripting
{ {
[id(0x00004e20)] [id(0x00004e20)]
HRESULT GetStandardStream([in] StandardStreamTypes StandardStreamType, HRESULT GetStandardStream([in] StandardStreamTypes StandardStreamType,
[in, optional, defaultvalue(0)] VARIANT_BOOL Unicode, [out, retval] ITextStream** ppts); [in, defaultvalue(0)] VARIANT_BOOL Unicode, [out, retval] ITextStream** ppts);
[id(0x00004e2a)] [id(0x00004e2a)]
HRESULT GetFileVersion([in] BSTR FileName, [out, retval] BSTR* FileVersion); HRESULT GetFileVersion([in] BSTR FileName, [out, retval] BSTR* FileVersion);
......
...@@ -107,7 +107,7 @@ library IWshRuntimeLibrary ...@@ -107,7 +107,7 @@ library IWshRuntimeLibrary
HRESULT Write([in] BSTR Text); HRESULT Write([in] BSTR Text);
[id(0x2718)] [id(0x2718)]
HRESULT WriteLine([in, optional, defaultvalue("")] BSTR Text); HRESULT WriteLine([in, defaultvalue("")] BSTR Text);
[id(0x2719)] [id(0x2719)]
HRESULT WriteBlankLines([in] long Lines); HRESULT WriteBlankLines([in] long Lines);
...@@ -223,20 +223,20 @@ library IWshRuntimeLibrary ...@@ -223,20 +223,20 @@ library IWshRuntimeLibrary
HRESULT Type([out, retval] BSTR* Type); HRESULT Type([out, retval] BSTR* Type);
[id(0x04b0)] [id(0x04b0)]
HRESULT Delete([in, optional, defaultvalue(0)] VARIANT_BOOL Force); HRESULT Delete([in, defaultvalue(0)] VARIANT_BOOL Force);
[id(0x04b2)] [id(0x04b2)]
HRESULT Copy( HRESULT Copy(
[in] BSTR Destination, [in] BSTR Destination,
[in, optional, defaultvalue(-1)] VARIANT_BOOL OverWriteFiles); [in, defaultvalue(-1)] VARIANT_BOOL OverWriteFiles);
[id(0x04b4)] [id(0x04b4)]
HRESULT Move([in] BSTR Destination); HRESULT Move([in] BSTR Destination);
[id(0x044c)] [id(0x044c)]
HRESULT OpenAsTextStream( HRESULT OpenAsTextStream(
[in, optional, defaultvalue(1)] IOMode IOMode, [in, defaultvalue(1)] IOMode IOMode,
[in, optional, defaultvalue(0)] Tristate Format, [in, defaultvalue(0)] Tristate Format,
[out, retval] ITextStream** ppts); [out, retval] ITextStream** ppts);
}; };
...@@ -308,12 +308,12 @@ library IWshRuntimeLibrary ...@@ -308,12 +308,12 @@ library IWshRuntimeLibrary
HRESULT Type([out, retval] BSTR* type); HRESULT Type([out, retval] BSTR* type);
[id(0x04b1)] [id(0x04b1)]
HRESULT Delete([in, optional, defaultvalue(0)] VARIANT_BOOL force); HRESULT Delete([in, defaultvalue(0)] VARIANT_BOOL force);
[id(0x04b3)] [id(0x04b3)]
HRESULT Copy( HRESULT Copy(
[in] BSTR Destination, [in] BSTR Destination,
[in, optional, defaultvalue(-1)] VARIANT_BOOL OverWriteFiles); [in, defaultvalue(-1)] VARIANT_BOOL OverWriteFiles);
[id(0x04b5)] [id(0x04b5)]
HRESULT Move([in] BSTR Destination); HRESULT Move([in] BSTR Destination);
...@@ -333,8 +333,8 @@ library IWshRuntimeLibrary ...@@ -333,8 +333,8 @@ library IWshRuntimeLibrary
[id(0x044d)] [id(0x044d)]
HRESULT CreateTextFile( HRESULT CreateTextFile(
[in] BSTR FileName, [in] BSTR FileName,
[in, optional, defaultvalue(-1)] VARIANT_BOOL Overwrite, [in, defaultvalue(-1)] VARIANT_BOOL Overwrite,
[in, optional, defaultvalue(0)] VARIANT_BOOL Unicode, [in, defaultvalue(0)] VARIANT_BOOL Unicode,
[out, retval] ITextStream** ppts); [out, retval] ITextStream** ppts);
}; };
...@@ -575,7 +575,7 @@ library IWshRuntimeLibrary ...@@ -575,7 +575,7 @@ library IWshRuntimeLibrary
HRESULT LogEvent( HRESULT LogEvent(
[in] VARIANT* Type, [in] VARIANT* Type,
[in] BSTR Message, [in] BSTR Message,
[in, optional, defaultvalue("")] BSTR Target, [in, defaultvalue("")] BSTR Target,
[out, retval] VARIANT_BOOL* out_Success); [out, retval] VARIANT_BOOL* out_Success);
[id(0x0bc2)] [id(0x0bc2)]
......
...@@ -211,8 +211,8 @@ cpp_quote("#endif /* _WINGDI_ */") ...@@ -211,8 +211,8 @@ cpp_quote("#endif /* _WINGDI_ */")
[in] single VerticalComponent); [in] single VerticalComponent);
[id(0x00000003)] HRESULT Rotate( [id(0x00000003)] HRESULT Rotate(
[in] single Degrees, [in] single Degrees,
[in, optional, defaultvalue(0)] single x, [in, defaultvalue(0)] single x,
[in, optional, defaultvalue(0)] single y); [in, defaultvalue(0)] single y);
[id(0x00000004)] HRESULT Reflect( [id(0x00000004)] HRESULT Reflect(
[in] VARIANT_BOOL Horizontally, [in] VARIANT_BOOL Horizontally,
[in] VARIANT_BOOL Vertically); [in] VARIANT_BOOL Vertically);
...@@ -336,7 +336,7 @@ cpp_quote("#endif /* _WINGDI_ */") ...@@ -336,7 +336,7 @@ cpp_quote("#endif /* _WINGDI_ */")
[id(0x00000014), propget] HRESULT Deleted( [id(0x00000014), propget] HRESULT Deleted(
[out, retval] VARIANT_BOOL* Deleted); [out, retval] VARIANT_BOOL* Deleted);
[id(0x00000003)] HRESULT GetBoundingBox( [id(0x00000003)] HRESULT GetBoundingBox(
[in, optional, defaultvalue(0)] InkBoundingBoxMode BoundingBoxMode, [in, defaultvalue(0)] InkBoundingBoxMode BoundingBoxMode,
[out, retval] IInkRectangle** Rectangle); [out, retval] IInkRectangle** Rectangle);
[id(0x00000005)] HRESULT FindIntersections( [id(0x00000005)] HRESULT FindIntersections(
[in] IInkStrokes* Strokes, [in] IInkStrokes* Strokes,
...@@ -354,7 +354,7 @@ cpp_quote("#endif /* _WINGDI_ */") ...@@ -354,7 +354,7 @@ cpp_quote("#endif /* _WINGDI_ */")
[id(0x00000009)] HRESULT NearestPoint( [id(0x00000009)] HRESULT NearestPoint(
[in] long x, [in] long x,
[in] long y, [in] long y,
[in, out, optional, defaultvalue(0)] single* Distance, [in, out, defaultvalue(0)] single* Distance,
[out, retval] single* Point); [out, retval] single* Point);
[id(0x0000000a)] HRESULT Split( [id(0x0000000a)] HRESULT Split(
[in] single SplitAt, [in] single SplitAt,
...@@ -366,35 +366,35 @@ cpp_quote("#endif /* _WINGDI_ */") ...@@ -366,35 +366,35 @@ cpp_quote("#endif /* _WINGDI_ */")
[out] TabletPropertyMetricUnit* Units, [out] TabletPropertyMetricUnit* Units,
[out] single* Resolution); [out] single* Resolution);
[id(0x00000016)] HRESULT GetPoints( [id(0x00000016)] HRESULT GetPoints(
[in, optional, defaultvalue(0)] long Index, [in, defaultvalue(0)] long Index,
[in, optional, defaultvalue(-1)] long Count, [in, defaultvalue(-1)] long Count,
[out, retval] VARIANT* Points); [out, retval] VARIANT* Points);
[id(0x00000017)] HRESULT SetPoints( [id(0x00000017)] HRESULT SetPoints(
[in] VARIANT Points, [in] VARIANT Points,
[in, optional, defaultvalue(0)] long Index, [in, defaultvalue(0)] long Index,
[in, optional, defaultvalue(-1)] long Count, [in, defaultvalue(-1)] long Count,
[out, retval] long* NumberOfPointsSet); [out, retval] long* NumberOfPointsSet);
[id(0x00000018)] HRESULT GetPacketData( [id(0x00000018)] HRESULT GetPacketData(
[in, optional, defaultvalue(0)] long Index, [in, defaultvalue(0)] long Index,
[in, optional, defaultvalue(-1)] long Count, [in, defaultvalue(-1)] long Count,
[out, retval] VARIANT* PacketData); [out, retval] VARIANT* PacketData);
[id(0x00000019)] HRESULT GetPacketValuesByProperty( [id(0x00000019)] HRESULT GetPacketValuesByProperty(
[in] BSTR propertyName, [in] BSTR propertyName,
[in, optional, defaultvalue(0)] long Index, [in, defaultvalue(0)] long Index,
[in, optional, defaultvalue(-1)] long Count, [in, defaultvalue(-1)] long Count,
[out, retval] VARIANT* PacketValues); [out, retval] VARIANT* PacketValues);
[id(0x0000001a)] HRESULT SetPacketValuesByProperty( [id(0x0000001a)] HRESULT SetPacketValuesByProperty(
[in] BSTR bstrPropertyName, [in] BSTR bstrPropertyName,
[in] VARIANT PacketValues, [in] VARIANT PacketValues,
[in, optional, defaultvalue(0)] long Index, [in, defaultvalue(0)] long Index,
[in, optional, defaultvalue(-1)] long Count, [in, defaultvalue(-1)] long Count,
[out, retval] long* NumberOfPacketsSet); [out, retval] long* NumberOfPacketsSet);
[id(0x0000001b)] HRESULT GetFlattenedBezierPoints( [id(0x0000001b)] HRESULT GetFlattenedBezierPoints(
[in, optional, defaultvalue(0)] long FittingError, [in, defaultvalue(0)] long FittingError,
[out, retval] VARIANT* FlattenedBezierPoints); [out, retval] VARIANT* FlattenedBezierPoints);
[id(0x0000001d)] HRESULT Transform( [id(0x0000001d)] HRESULT Transform(
[in] IInkTransform* Transform, [in] IInkTransform* Transform,
[in, optional, defaultvalue(0)] VARIANT_BOOL ApplyOnPenWidth); [in, defaultvalue(0)] VARIANT_BOOL ApplyOnPenWidth);
[id(0x0000001c)] HRESULT ScaleToRectangle( [id(0x0000001c)] HRESULT ScaleToRectangle(
[in] IInkRectangle* Rectangle); [in] IInkRectangle* Rectangle);
[id(0x0000001e)] HRESULT Move( [id(0x0000001e)] HRESULT Move(
...@@ -402,8 +402,8 @@ cpp_quote("#endif /* _WINGDI_ */") ...@@ -402,8 +402,8 @@ cpp_quote("#endif /* _WINGDI_ */")
[in] single VerticalComponent); [in] single VerticalComponent);
[id(0x0000001f)] HRESULT Rotate( [id(0x0000001f)] HRESULT Rotate(
[in] single Degrees, [in] single Degrees,
[in, optional, defaultvalue(0)] single x, [in, defaultvalue(0)] single x,
[in, optional, defaultvalue(0)] single y); [in, defaultvalue(0)] single y);
[id(0x00000020)] HRESULT Shear( [id(0x00000020)] HRESULT Shear(
[in] single HorizontalMultiplier, [in] single HorizontalMultiplier,
[in] single VerticalMultiplier); [in] single VerticalMultiplier);
...@@ -693,7 +693,7 @@ cpp_quote("#endif /* _WINGDI_ */") ...@@ -693,7 +693,7 @@ cpp_quote("#endif /* _WINGDI_ */")
HRESULT DrawStroke( HRESULT DrawStroke(
[in] long hDC, [in] long hDC,
[in] IInkStrokeDisp* Stroke, [in] IInkStrokeDisp* Stroke,
[in, optional, defaultvalue(0)] [in, defaultvalue(0)]
IInkDrawingAttributes* DrawingAttributes); IInkDrawingAttributes* DrawingAttributes);
HRESULT PixelToInkSpace( HRESULT PixelToInkSpace(
[in] long hDC, [in] long hDC,
...@@ -714,19 +714,19 @@ cpp_quote("#endif /* _WINGDI_ */") ...@@ -714,19 +714,19 @@ cpp_quote("#endif /* _WINGDI_ */")
[out, retval] IInkRectangle** Rectangle); [out, retval] IInkRectangle** Rectangle);
HRESULT MeasureStroke( HRESULT MeasureStroke(
[in] IInkStrokeDisp* Stroke, [in] IInkStrokeDisp* Stroke,
[in, optional, defaultvalue(0)] IInkDrawingAttributes* DrawingAttributes, [in, defaultvalue(0)] IInkDrawingAttributes* DrawingAttributes,
[out, retval] IInkRectangle** Rectangle); [out, retval] IInkRectangle** Rectangle);
HRESULT Move( HRESULT Move(
[in] single HorizontalComponent, [in] single HorizontalComponent,
[in] single VerticalComponent); [in] single VerticalComponent);
HRESULT Rotate( HRESULT Rotate(
[in] single Degrees, [in] single Degrees,
[in, optional, defaultvalue(0)] single x, [in, defaultvalue(0)] single x,
[in, optional, defaultvalue(0)] single y); [in, defaultvalue(0)] single y);
HRESULT ScaleTransform( HRESULT ScaleTransform(
[in] single HorizontalMultiplier, [in] single HorizontalMultiplier,
[in] single VerticalMultiplier, [in] single VerticalMultiplier,
[in, optional, defaultvalue(-1)] VARIANT_BOOL ApplyOnPenWidth); [in, defaultvalue(-1)] VARIANT_BOOL ApplyOnPenWidth);
}; };
typedef enum { typedef enum {
...@@ -996,7 +996,7 @@ cpp_quote("#endif /* _WINGDI_ */") ...@@ -996,7 +996,7 @@ cpp_quote("#endif /* _WINGDI_ */")
[id(0x00000017)] HRESULT SetWindowInputRectangle( [id(0x00000017)] HRESULT SetWindowInputRectangle(
[in] IInkRectangle* WindowInputRectangle); [in] IInkRectangle* WindowInputRectangle);
[id(0x0000001a)] HRESULT SetAllTabletsMode( [id(0x0000001a)] HRESULT SetAllTabletsMode(
[in, optional, defaultvalue(-1)] VARIANT_BOOL UseMouseForInput); [in, defaultvalue(-1)] VARIANT_BOOL UseMouseForInput);
[id(0x0000001b)] HRESULT SetSingleTabletIntegratedMode( [id(0x0000001b)] HRESULT SetSingleTabletIntegratedMode(
[in] IInkTablet* Tablet); [in] IInkTablet* Tablet);
[id(0x0000000b)] HRESULT GetEventInterest( [id(0x0000000b)] HRESULT GetEventInterest(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment