Alistair Leslie-Hughes : include: Add drmexternals.idl and wmdrmsdk.idl.

Alexandre Julliard julliard at winehq.org
Thu May 11 15:07:29 CDT 2017


Module: wine
Branch: master
Commit: d5930db829680734ac0a6b10b1a2125cf24dba15
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d5930db829680734ac0a6b10b1a2125cf24dba15

Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date:   Wed May 10 21:51:42 2017 -0600

include: Add drmexternals.idl and wmdrmsdk.idl.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 include/Makefile.in      |  2 ++
 include/drmexternals.idl | 19 ++++++++++++
 include/wmdrmsdk.idl     | 81 ++++++++++++++++++++++++++++++++++++++++++++++++
 include/wmsdkidl.idl     |  2 +-
 4 files changed, 103 insertions(+), 1 deletion(-)

diff --git a/include/Makefile.in b/include/Makefile.in
index 497c76f..7846d67 100644
--- a/include/Makefile.in
+++ b/include/Makefile.in
@@ -58,6 +58,7 @@ IDL_SRCS = \
 	docobj.idl \
 	docobjectservice.idl \
 	downloadmgr.idl \
+	drmexternals.idl \
 	dwrite.idl \
 	dwrite_1.idl \
 	dwrite_2.idl \
@@ -177,6 +178,7 @@ IDL_SRCS = \
 	wine/svcctl.idl \
 	wine/winedxgi.idl \
 	winsxs.idl \
+	wmdrmsdk.idl \
 	wmiutils.idl \
 	wmp.idl \
 	wmsbuffer.idl \
diff --git a/include/drmexternals.idl b/include/drmexternals.idl
new file mode 100644
index 0000000..88826ad
--- /dev/null
+++ b/include/drmexternals.idl
@@ -0,0 +1,19 @@
+/*
+ * Copyright 2017 Alistair Leslie-Hughes
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+import "wmdrmsdk.idl";
diff --git a/include/wmdrmsdk.idl b/include/wmdrmsdk.idl
new file mode 100644
index 0000000..8de3b35
--- /dev/null
+++ b/include/wmdrmsdk.idl
@@ -0,0 +1,81 @@
+/*
+ * Copyright 2017 Alistair Leslie-Hughes
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+import "oaidl.idl";
+import "ocidl.idl";
+import "mfobjects.idl";
+import "mfidl.idl";
+
+typedef struct _DRM_MINIMUM_OUTPUT_PROTECTION_LEVELS
+{
+    WORD wCompressedDigitalVideo;
+    WORD wUncompressedDigitalVideo;
+    WORD wAnalogVideo;
+    WORD wCompressedDigitalAudio;
+    WORD wUncompressedDigitalAudio;
+} DRM_MINIMUM_OUTPUT_PROTECTION_LEVELS;
+
+typedef struct _DRM_VIDEO_OUTPUT_PROTECTION
+{
+    GUID guidId;
+    BYTE bConfigData;
+} DRM_VIDEO_OUTPUT_PROTECTION;
+
+typedef struct _DRM_VIDEO_OUTPUT_PROTECTION_IDS
+{
+    WORD                        cEntries;
+    DRM_VIDEO_OUTPUT_PROTECTION *rgVop;
+} DRM_VIDEO_OUTPUT_PROTECTION_IDS;
+
+typedef struct _DRM_OPL_OUTPUT_IDS
+{
+    WORD cIds;
+    GUID *rgIds;
+} DRM_OPL_OUTPUT_IDS;
+
+typedef struct __tagDRM_COPY_OPL
+{
+    WORD               wMinimumCopyLevel;
+    DRM_OPL_OUTPUT_IDS oplIdIncludes;
+    DRM_OPL_OUTPUT_IDS oplIdExcludes;
+} DRM_COPY_OPL;
+
+typedef struct __tagDRM_PLAY_OPL
+{
+    DRM_MINIMUM_OUTPUT_PROTECTION_LEVELS minOPL;
+    DRM_OPL_OUTPUT_IDS                   oplIdReserved;
+    DRM_VIDEO_OUTPUT_PROTECTION_IDS      vopi;
+} DRM_PLAY_OPL;
+
+
+[
+    uuid(82435be0-f7c1-4df9-8103-eeabebf3d6e1),
+    version(1.0)
+]
+library WMDRMContentEnablerLib
+{
+    importlib("stdole2.tlb");
+
+    [
+        uuid(82435bdf-f7c1-4df9-8103-eeabebf3d6e1)
+    ]
+    coclass WMDRMContentEnablerActivate
+    {
+        [default] interface IPersistStream;
+    };
+};
diff --git a/include/wmsdkidl.idl b/include/wmsdkidl.idl
index 5ce849f..433ec46 100644
--- a/include/wmsdkidl.idl
+++ b/include/wmsdkidl.idl
@@ -18,7 +18,7 @@
 
 import "oaidl.idl";
 import "wmsbuffer.idl";
-/* import "drmexternals.idl"; */
+import "drmexternals.idl";
 
 typedef unsigned __int64 QWORD;
 




More information about the wine-cvs mailing list