|
|
|
1 |
|
|
2 |
|
|
3 |
|
/* this ALWAYS GENERATED file contains the definitions for the interfaces */ |
4 |
|
|
5 |
|
|
6 |
|
/* File created by MIDL compiler version 7.00.0499 */ |
7 |
|
/* Compiler settings for drmexternals.idl: |
8 |
|
Oicf, W1, Zp8, env=Win32 (32b run) |
9 |
|
protocol : dce , ms_ext, c_ext, robust |
10 |
|
error checks: allocation ref bounds_check enum stub_data |
11 |
|
VC __declspec() decoration level: |
12 |
|
__declspec(uuid()), __declspec(selectany), __declspec(novtable) |
13 |
|
DECLSPEC_UUID(), MIDL_INTERFACE() |
14 |
|
*/ |
15 |
|
//@@MIDL_FILE_HEADING( ) |
16 |
|
|
17 |
|
#pragma warning( disable: 4049 ) /* more than 64k source lines */ |
18 |
|
|
19 |
|
|
20 |
|
/* verify that the <rpcndr.h> version is high enough to compile this file*/ |
21 |
|
#ifndef __REQUIRED_RPCNDR_H_VERSION__ |
22 |
|
#define __REQUIRED_RPCNDR_H_VERSION__ 500 |
23 |
|
#endif |
24 |
|
|
25 |
|
/* verify that the <rpcsal.h> version is high enough to compile this file*/ |
26 |
|
#ifndef __REQUIRED_RPCSAL_H_VERSION__ |
27 |
|
#define __REQUIRED_RPCSAL_H_VERSION__ 100 |
28 |
|
#endif |
29 |
|
|
30 |
|
#include "rpc.h" |
31 |
|
#include "rpcndr.h" |
32 |
|
|
33 |
|
#ifndef __RPCNDR_H_VERSION__ |
34 |
|
#error this stub requires an updated version of <rpcndr.h> |
35 |
|
#endif // __RPCNDR_H_VERSION__ |
36 |
|
|
37 |
|
|
38 |
|
#ifndef __drmexternals_h__ |
39 |
|
#define __drmexternals_h__ |
40 |
|
|
41 |
|
#if defined(_MSC_VER) && (_MSC_VER >= 1020) |
42 |
|
#pragma once |
43 |
|
#endif |
44 |
|
|
45 |
|
/* Forward Declarations */ |
46 |
|
|
47 |
|
/* header files for imported files */ |
48 |
|
#include "wmdrmsdk.h" |
49 |
|
|
50 |
|
#ifdef __cplusplus |
51 |
|
extern "C"{ |
52 |
|
#endif |
53 |
|
|
54 |
|
|
55 |
|
/* interface __MIDL_itf_drmexternals_0000_0000 */ |
56 |
|
/* [local] */ |
57 |
|
|
58 |
|
static const WCHAR *g_wszWMDRM_IsDRM = L"IsDRM"; |
59 |
|
static const WCHAR *g_wszWMDRM_IsDRMCached = L"IsDRMCached"; |
60 |
|
static const WCHAR *g_wszWMDRM_BaseLicenseAcqURL = L"BaseLAURL"; |
61 |
|
static const WCHAR *g_wszWMDRM_Rights = L"Rights"; |
62 |
|
static const WCHAR *g_wszWMDRM_LicenseID = L"LID"; |
63 |
|
static const WCHAR *g_wszWMDRM_DRMHeader = L"DRMHeader."; |
64 |
|
static const WCHAR *g_wszWMDRM_DRMHeader_KeyID = L"DRMHeader.KID"; |
65 |
|
static const WCHAR *g_wszWMDRM_DRMHeader_LicenseAcqURL = L"DRMHeader.LAINFO"; |
66 |
|
static const WCHAR *g_wszWMDRM_DRMHeader_ContentID = L"DRMHeader.CID"; |
67 |
|
static const WCHAR *g_wszWMDRM_DRMHeader_IndividualizedVersion = L"DRMHeader.SECURITYVERSION"; |
68 |
|
static const WCHAR *g_wszWMDRM_DRMHeader_ContentDistributor = L"DRMHeader.ContentDistributor"; |
69 |
|
static const WCHAR *g_wszWMDRM_DRMHeader_SubscriptionContentID = L"DRMHeader.SubscriptionContentID"; |
70 |
|
#ifndef DRM_PLAYLIST_TYPES_DEFINED |
71 |
|
#define DRM_PLAYLIST_TYPES_DEFINED 1 |
72 |
|
#define DRM_PLAYLIST_DATA_V2_VALID ((DWORD) 0x00000001) |
73 |
|
#define DRM_PLAYLIST_DATA_V1_VALID ((DWORD) 0x00000002) |
74 |
|
#define DRM_PLAYLIST_DATA_OTHER_VALID ((DWORD) 0x00000004) |
75 |
|
#define DRM_CANCEL_PLAYLIST_BURN ((DWORD) 0x00000001) |
76 |
|
#define DRM_COMMIT_PLAYLIST_BURN ((DWORD) 0x00000002) |
77 |
|
typedef struct __tagDRM_PLAYLIST_CONTENT_ID |
78 |
|
{ |
79 |
|
LPCWSTR lpcwszV2Header; |
80 |
|
LPCSTR lpcszV1KID; |
81 |
|
BYTE *pbOtherData; |
82 |
|
DWORD cbOtherData; |
83 |
|
DWORD dwUniqueIDForSession; |
84 |
|
DWORD dwValidFields; |
85 |
|
} DRM_PLAYLIST_CONTENT_ID; |
86 |
|
|
87 |
|
#endif // DRM_PLAYLIST_TYPES_DEFINED |
88 |
|
typedef |
89 |
|
enum WMT_RIGHTS |
90 |
|
{ WMT_RIGHT_PLAYBACK = 0x1, |
91 |
|
WMT_RIGHT_COPY_TO_NON_SDMI_DEVICE = 0x2, |
92 |
|
WMT_RIGHT_COPY_TO_CD = 0x8, |
93 |
|
WMT_RIGHT_COPY_TO_SDMI_DEVICE = 0x10, |
94 |
|
WMT_RIGHT_ONE_TIME = 0x20, |
95 |
|
WMT_RIGHT_SAVE_STREAM_PROTECTED = 0x40, |
96 |
|
WMT_RIGHT_COPY = 0x80, |
97 |
|
WMT_RIGHT_COLLABORATIVE_PLAY = 0x100, |
98 |
|
WMT_RIGHT_SDMI_TRIGGER = 0x10000, |
99 |
|
WMT_RIGHT_SDMI_NOMORECOPIES = 0x20000 |
110 |
|
EXTERN_GUID( WMDRM_PROTECTION_SCHEME_MAX_VGA_RESOLUTION_1, 0xd9619433, 0xec9f, 0x489e, 0x9e, 0x07, 0x77, 0x0d, 0xed, 0xd8, 0xbd, 0x04 ); |
111 |
|
EXTERN_GUID( WMDRM_PROTECTION_SCHEME_MAX_VGA_RESOLUTION_2, 0xa24f0a24, 0x5c92, 0x4737, 0x9b, 0x21, 0xa2, 0x3e, 0x4f, 0xed, 0x32, 0x2e ); |
112 |
|
EXTERN_GUID( WMDRM_PROTECTION_SCHEME_MAX_VGA_RESOLUTION_3, 0xc4db4310, 0xa1ae, 0x422e, 0xb7, 0xa7, 0x21, 0xbc, 0x34, 0x73, 0xda, 0x77 ); |
113 |
|
EXTERN_GUID( WMDRM_PROTECTION_SCHEME_MAX_VGA_RESOLUTION_4, 0xe84e4d21, 0x3b1c, 0x44bc, 0xa2, 0xec, 0xc4, 0x81, 0x08, 0x58, 0x7c, 0xad ); |
114 |
|
EXTERN_GUID( WMDRM_PROTECTION_SCHEME_MAX_COMPONENT_RESOLUTION_1, 0xec3a1c03, 0xdd4e, 0x47f7, 0xbf, 0xe5, 0xae, 0xe7, 0x53, 0x48, 0x66, 0x71 ); |
115 |
|
EXTERN_GUID( WMDRM_PROTECTION_SCHEME_MAX_COMPONENT_RESOLUTION_2, 0x327803ca, 0xd914, 0x4da3, 0x97, 0x28, 0xe1, 0x9e, 0x82, 0xbe, 0x8c, 0x25 ); |
116 |
|
EXTERN_GUID( WMDRM_PROTECTION_SCHEME_MAX_COMPONENT_RESOLUTION_3, 0x36d9c83f, 0xaf07, 0x4727, 0xab, 0x74, 0xca, 0x69, 0x31, 0xba, 0x69, 0xf3 ); |
117 |
|
EXTERN_GUID( WMDRM_PROTECTION_SCHEME_MAX_COMPONENT_RESOLUTION_4, 0x9443d876, 0x1d46, 0x40cb, 0xbd, 0xe5, 0x9c, 0xc1, 0x46, 0x4c, 0x9b, 0xaf ); |
118 |
|
#endif // DRM_PROTECTION_SCHEMES_DEFINED |
119 |
|
#ifndef DRM_WM_GET_LIC_DATA_DEFINED |
120 |
|
#define DRM_WM_GET_LIC_DATA_DEFINED 1 |
121 |
|
typedef struct _WMGetLicenseData |
122 |
|
{ |
123 |
|
DWORD dwSize; |
124 |
|
HRESULT hr; |
125 |
|
BSTR wszURL; |
126 |
|
WCHAR *wszLocalFilename; |
127 |
|
BYTE *pbPostData; |
128 |
|
DWORD dwPostDataSize; |
129 |
|
} WM_GET_LICENSE_DATA; |
130 |
|
|
131 |
|
#endif // DRM_WM_GET_LIC_DATA_DEFINED |
132 |
|
#define WMDRM_KEYTYPE_RC4 0 |
133 |
|
#define WMDRM_KEYTYPE_COCKTAIL 1 |
134 |
|
#ifndef WMDRM_IMPORT_SESSION_KEY_DEFINED |
135 |
|
#define WMDRM_IMPORT_SESSION_KEY_DEFINED 1 |
136 |
|
typedef struct __tagWMDRM_IMPORT_SESSION_KEY |
137 |
|
{ |
138 |
|
DWORD dwKeyType; |
139 |
|
DWORD cbKey; |
140 |
|
BYTE rgbKey[ 1 ]; |
141 |
|
} WMDRM_IMPORT_SESSION_KEY; |
142 |
|
|
143 |
|
#endif // WMDRM_IMPORT_SESSION_KEY_DEFINED |
144 |
|
#ifndef WMDRM_IMPORT_CONTENT_KEY_DEFINED |
145 |
|
#define WMDRM_IMPORT_CONTENT_KEY_DEFINED 1 |
146 |
|
typedef struct __tagWMDRM_IMPORT_CONTENT_KEY |
147 |
|
{ |
148 |
|
DWORD dwVersion; |
149 |
|
DWORD cbStructSize; |
150 |
|
DWORD dwIVKeyType; |
151 |
|
DWORD cbIVKey; |
152 |
|
DWORD dwContentKeyType; |
153 |
|
DWORD cbContentKey; |
154 |
|
BYTE rgbKeyData[ 1 ]; |
155 |
|
} WMDRM_IMPORT_CONTENT_KEY; |
156 |
|
|
157 |
|
#endif // WMDRM_IMPORT_CONTENT_KEY_DEFINED |
158 |
|
#ifndef WMDRM_IMPORT_INIT_STRUCT_DEFINED |
159 |
|
#define WMDRM_IMPORT_INIT_STRUCT_DEFINED 1 |
160 |
|
typedef struct WMDRM_IMPORT_INIT_STRUCT |
161 |
|
{ |
162 |
|
DWORD dwVersion; |
163 |
|
DWORD cbEncryptedSessionKeyMessage; |
164 |
|
BYTE *pbEncryptedSessionKeyMessage; |
165 |
|
DWORD cbEncryptedKeyMessage; |
166 |
|
BYTE *pbEncryptedKeyMessage; |
167 |
|
} WMDRM_IMPORT_INIT_STRUCT; |
168 |
|
|
169 |
|
#endif // WMDRM_IMPORT_INIT_STRUCT_DEFINED |
170 |
|
|
171 |
|
|
172 |
|
extern RPC_IF_HANDLE __MIDL_itf_drmexternals_0000_0000_v0_0_c_ifspec; |
173 |
|
extern RPC_IF_HANDLE __MIDL_itf_drmexternals_0000_0000_v0_0_s_ifspec; |
174 |
|
|
175 |
|
/* Additional Prototypes for ALL interfaces */ |
176 |
|
|
177 |
|
/* end of Additional Prototypes */ |
178 |
|
|
179 |
|
#ifdef __cplusplus |
180 |
|
} |
181 |
|
#endif |
182 |
|
|
183 |
|
#endif |
184 |
|
|
185 |
|
|
186 |
|
|
187 |
|
|
|
|
|