headers: Import Wine version 11.21

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
diff --git a/mingw-w64-headers/include/mediaobj.idl b/mingw-w64-headers/include/mediaobj.idl
index 127b95e..689048b 100644
--- a/mingw-w64-headers/include/mediaobj.idl
+++ b/mingw-w64-headers/include/mediaobj.idl
@@ -92,6 +92,15 @@
     );
 }
 
+enum _DMO_OUTPUT_STREAM_INFO_FLAGS
+{
+    DMO_OUTPUT_STREAMF_WHOLE_SAMPLES            = 0x00000001,
+    DMO_OUTPUT_STREAMF_SINGLE_SAMPLE_PER_BUFFER = 0x00000002,
+    DMO_OUTPUT_STREAMF_FIXED_SAMPLE_SIZE        = 0x00000004,
+    DMO_OUTPUT_STREAMF_DISCARDABLE              = 0x00000008,
+    DMO_OUTPUT_STREAMF_OPTIONAL                 = 0x00000010,
+};
+
 enum _DMO_INPUT_STATUS_FLAGS
 {
     DMO_INPUT_STATUSF_ACCEPT_DATA = 0x00000001,
diff --git a/mingw-w64-headers/include/msxml.idl b/mingw-w64-headers/include/msxml.idl
index 283a0f4..e33e1d0 100644
--- a/mingw-w64-headers/include/msxml.idl
+++ b/mingw-w64-headers/include/msxml.idl
@@ -299,7 +299,7 @@
 typedef struct _xml_error {
 	UINT _nLine;
 	BSTR _pchBuf;
-	BSTR _cchBuf;
+	UINT _cchBuf;
 	UINT _ich;
 	BSTR _pszFound;
 	BSTR _pszExpected;
diff --git a/mingw-w64-headers/include/propvarutil.h b/mingw-w64-headers/include/propvarutil.h
index 6c2f4e7..c50a46d 100644
--- a/mingw-w64-headers/include/propvarutil.h
+++ b/mingw-w64-headers/include/propvarutil.h
@@ -118,6 +118,7 @@
 PSSTDAPI_(PCWSTR) PropVariantToStringWithDefault(REFPROPVARIANT propvarIn, LPCWSTR pszDefault);
 PSSTDAPI_(PCWSTR) VariantToStringWithDefault(const VARIANT *pvar, LPCWSTR pszDefault);
 PSSTDAPI VariantToString(REFVARIANT var, PWSTR ret, UINT cch);
+PSSTDAPI_(INT) VariantCompare(const VARIANT *var1, const VARIANT *var2);
 
 PSSTDAPI PropVariantToStringAlloc(REFPROPVARIANT propvarIn, WCHAR **ret);
 
diff --git a/mingw-w64-headers/include/textstor.idl b/mingw-w64-headers/include/textstor.idl
index 5aa1279..bb3b3c5 100644
--- a/mingw-w64-headers/include/textstor.idl
+++ b/mingw-w64-headers/include/textstor.idl
@@ -324,3 +324,152 @@
         [in] TsViewCookie vcView,
         [out] HWND *phwnd);
 }
+
+[
+  object,
+  uuid(f86ad89f-5fe4-4b8d-bb9f-ef3797a84f1f),
+  pointer_default(unique)
+]
+interface ITextStoreACP2 : IUnknown
+{
+    HRESULT AdviseSink(
+        [in] REFIID riid,
+        [in, iid_is(riid)] IUnknown *punk,
+        [in] DWORD dwMask);
+
+    HRESULT UnadviseSink([in] IUnknown *punk);
+
+    HRESULT RequestLock(
+        [in] DWORD dwLockFlags,
+        [out] HRESULT *phrSession);
+
+    HRESULT GetStatus([out] TS_STATUS *pdcs);
+
+    HRESULT QueryInsert(
+        [in] LONG acpTestStart,
+        [in] LONG acpTestEnd,
+        [in] ULONG cch,
+        [out] LONG *pacpResultStart,
+        [out] LONG *pacpResultEnd);
+
+    HRESULT GetSelection(
+        [in] ULONG ulIndex,
+        [in] ULONG ulCount,
+        [out, size_is(ulCount), length_is(*pcFetched)] TS_SELECTION_ACP *pSelection,
+        [out] ULONG *pcFetched);
+
+    HRESULT SetSelection(
+        [in] ULONG ulCount,
+        [in, size_is(ulCount)] const TS_SELECTION_ACP *pSelection);
+
+    HRESULT GetText(
+        [in] LONG acpStart,
+        [in] LONG acpEnd,
+        [out, size_is(cchPlainReq), length_is(*pcchPlainRet)] WCHAR *pchPlain,
+        [in] ULONG cchPlainReq,
+        [out] ULONG *pcchPlainRet,
+        [out, size_is(cRunInfoReq), length_is(*pcRunInfoRet)] TS_RUNINFO *prgRunInfo,
+        [in] ULONG cRunInfoReq,
+        [out] ULONG *pcRunInfoRet,
+        [out] LONG *pacpNext);
+
+    HRESULT SetText(
+        [in] DWORD dwFlags,
+        [in] LONG acpStart,
+        [in] LONG acpEnd,
+        [in, size_is(cch)] const WCHAR *pchText,
+        [in] ULONG cch,
+        [out] TS_TEXTCHANGE *pChange);
+
+    HRESULT GetFormattedText(
+        [in] LONG acpStart,
+        [in] LONG acpEnd,
+        [out] IDataObject **ppDataObject);
+
+    HRESULT GetEmbedded(
+        [in] LONG acpPos,
+        [in] REFGUID rguidService,
+        [in] REFIID riid,
+        [out, iid_is(riid)] IUnknown **ppunk);
+
+    HRESULT QueryInsertEmbedded(
+        [in] const GUID *pguidService,
+        [in] const FORMATETC *pFormatEtc,
+        [out] BOOL *pfInsertable);
+
+    HRESULT InsertEmbedded(
+        [in] DWORD dwFlags,
+        [in] LONG acpStart,
+        [in] LONG acpEnd,
+        [in] IDataObject *pDataObject,
+        [out] TS_TEXTCHANGE *pChange);
+
+
+    HRESULT InsertTextAtSelection(
+        [in] DWORD dwFlags,
+        [in, size_is(cch)] const WCHAR *pchText,
+        [in] ULONG cch,
+        [out] LONG *pacpStart,
+        [out] LONG *pacpEnd,
+        [out] TS_TEXTCHANGE *pChange);
+
+    HRESULT InsertEmbeddedAtSelection(
+        [in] DWORD dwFlags,
+        [in] IDataObject *pDataObject,
+        [out] LONG *pacpStart,
+        [out] LONG *pacpEnd,
+        [out] TS_TEXTCHANGE *pChange);
+
+    HRESULT RequestSupportedAttrs(
+        [in] DWORD dwFlags,
+        [in] ULONG cFilterAttrs,
+        [in, size_is(cFilterAttrs), unique] const TS_ATTRID *paFilterAttrs);
+
+    HRESULT RequestAttrsAtPosition(
+        [in] LONG acpPos,
+        [in] ULONG cFilterAttrs,
+        [in, size_is(cFilterAttrs), unique] const TS_ATTRID *paFilterAttrs,
+        [in] DWORD dwFlags);
+
+    HRESULT RequestAttrsTransitioningAtPosition(
+        [in] LONG acpPos,
+        [in] ULONG cFilterAttrs,
+        [in, size_is(cFilterAttrs), unique] const TS_ATTRID *paFilterAttrs,
+        [in] DWORD dwFlags);
+
+    HRESULT FindNextAttrTransition(
+        [in] LONG acpStart,
+        [in] LONG acpHalt,
+        [in] ULONG cFilterAttrs,
+        [in, size_is(cFilterAttrs), unique] const TS_ATTRID *paFilterAttrs,
+        [in] DWORD dwFlags,
+        [out] LONG *pacpNext,
+        [out] BOOL *pfFound,
+        [out] LONG *plFoundOffset);
+
+    HRESULT RetrieveRequestedAttrs(
+        [in] ULONG ulCount,
+        [out, size_is(ulCount), length_is(*pcFetched)] TS_ATTRVAL *paAttrVals,
+        [out] ULONG *pcFetched);
+
+    HRESULT GetEndACP([out] LONG *pacp);
+
+    HRESULT GetActiveView([out] TsViewCookie *pvcView);
+
+    HRESULT GetACPFromPoint(
+        [in] TsViewCookie vcView,
+        [in] const POINT *ptScreen,
+        [in] DWORD dwFlags,
+        [out] LONG *pacp);
+
+    HRESULT GetTextExt(
+        [in] TsViewCookie vcView,
+        [in] LONG acpStart,
+        [in] LONG acpEnd,
+        [out] RECT *prc,
+        [out] BOOL *pfClipped);
+
+    HRESULT GetScreenExt(
+        [in] TsViewCookie vcView,
+        [out] RECT *prc);
+};
diff --git a/mingw-w64-headers/include/webservices.h b/mingw-w64-headers/include/webservices.h
index 97944dd..7a319e0 100644
--- a/mingw-w64-headers/include/webservices.h
+++ b/mingw-w64-headers/include/webservices.h
@@ -1768,15 +1768,11 @@
                               const void*, ULONG, WS_MESSAGE*, const WS_MESSAGE_DESCRIPTION*, WS_READ_OPTION,
                               WS_HEAP*, void*, ULONG, const WS_ASYNC_CONTEXT*, WS_ERROR*);
 HRESULT WINAPI WsResetChannel(WS_CHANNEL*, WS_ERROR*);
-HRESULT WINAPI WsResetMessage(WS_MESSAGE*, WS_ERROR*);
 HRESULT WINAPI WsResetError(WS_ERROR*);
 HRESULT WINAPI WsResetHeap(WS_HEAP*, WS_ERROR*);
 HRESULT WINAPI WsResetListener(WS_LISTENER*, WS_ERROR*);
 HRESULT WINAPI WsResetMessage(WS_MESSAGE*, WS_ERROR*);
 HRESULT WINAPI WsResetServiceProxy(WS_SERVICE_PROXY*, WS_ERROR*);
-HRESULT WINAPI WsRequestReply(WS_CHANNEL*, WS_MESSAGE*, const WS_MESSAGE_DESCRIPTION*, WS_WRITE_OPTION,
-                              const void*, ULONG, WS_MESSAGE*, const WS_MESSAGE_DESCRIPTION*,
-                              WS_READ_OPTION, WS_HEAP*, void*, ULONG, const WS_ASYNC_CONTEXT*, WS_ERROR*);
 HRESULT WINAPI WsSendMessage(WS_CHANNEL*, WS_MESSAGE*, const WS_MESSAGE_DESCRIPTION*, WS_WRITE_OPTION,
                              const void*, ULONG, const WS_ASYNC_CONTEXT*, WS_ERROR*);
 HRESULT WINAPI WsSendReplyMessage(WS_CHANNEL*, WS_MESSAGE*, const WS_MESSAGE_DESCRIPTION*,
diff --git a/mingw-w64-headers/include/wincodec.idl b/mingw-w64-headers/include/wincodec.idl
index 5ff1371..97765b2 100644
--- a/mingw-w64-headers/include/wincodec.idl
+++ b/mingw-w64-headers/include/wincodec.idl
@@ -433,7 +433,7 @@
         [in] IWICPalette *pIPalette);
 
     HRESULT CopyPixels(
-        [in] const WICRect *prc,
+        [in, unique] const WICRect *prc,
         [in] UINT cbStride,
         [in] UINT cbBufferSize,
         [out, size_is(cbBufferSize)] BYTE *pbBuffer);
@@ -478,7 +478,7 @@
 interface IWICBitmap : IWICBitmapSource
 {
     HRESULT Lock(
-        [in] const WICRect *prcLock,
+        [in, unique] const WICRect *prcLock,
         [in] DWORD flags,
         [out] IWICBitmapLock **ppILock);
 
@@ -895,7 +895,7 @@
         [in] IWICBitmapSource *pISource,
         [in] REFWICPixelFormatGUID dstFormat,
         [in] WICBitmapDitherType dither,
-        [in] IWICPalette *pIPalette,
+        [in, unique] IWICPalette *pIPalette,
         [in] double alphaThresholdPercent,
         [in] WICBitmapPaletteType paletteTranslate);
 
@@ -913,7 +913,7 @@
 {
     HRESULT GetPixelFormats(
         [in] UINT cFormats,
-        [in, out, size_is(cFormats)] WICPixelFormatGUID *pPixelFormatGUIDs,
+        [in, out, unique, size_is(cFormats)] WICPixelFormatGUID *pPixelFormatGUIDs,
         [out] UINT *pcActual);
 
     HRESULT CreateInstance(