drmexternals.h
上传用户:hylc_2004
上传日期:2014-01-23
资源大小:46800k
文件大小:6k
源码类别:

Delphi控件源码

开发平台:

Delphi

  1. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  2.  /* File created by MIDL compiler version 6.00.0361 */
  3. /* Compiler settings for drmexternals.idl:
  4.     Oicf, W1, Zp8, env=Win32 (32b run)
  5.     protocol : dce , ms_ext, c_ext, robust
  6.     error checks: allocation ref bounds_check enum stub_data 
  7.     VC __declspec() decoration level: 
  8.          __declspec(uuid()), __declspec(selectany), __declspec(novtable)
  9.          DECLSPEC_UUID(), MIDL_INTERFACE()
  10. */
  11. //@@MIDL_FILE_HEADING(  )
  12. #pragma warning( disable: 4049 )  /* more than 64k source lines */
  13. /* verify that the <rpcndr.h> version is high enough to compile this file*/
  14. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  15. #define __REQUIRED_RPCNDR_H_VERSION__ 475
  16. #endif
  17. #include "rpc.h"
  18. #include "rpcndr.h"
  19. #ifndef __RPCNDR_H_VERSION__
  20. #error this stub requires an updated version of <rpcndr.h>
  21. #endif // __RPCNDR_H_VERSION__
  22. #ifndef __drmexternals_h__
  23. #define __drmexternals_h__
  24. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  25. #pragma once
  26. #endif
  27. /* Forward Declarations */ 
  28. /* header files for imported files */
  29. #include "oaidl.h"
  30. #ifdef __cplusplus
  31. extern "C"{
  32. #endif 
  33. void * __RPC_USER MIDL_user_allocate(size_t);
  34. void __RPC_USER MIDL_user_free( void * ); 
  35. /* interface __MIDL_itf_drmexternals_0000 */
  36. /* [local] */ 
  37. //=========================================================================
  38. //
  39. // Microsoft Windows Media Technologies
  40. // Copyright (C) Microsoft Corporation.  All Rights Reserved.
  41. //
  42. //=========================================================================
  43. static const WCHAR *g_wszWMDRM_RIGHT_PLAYBACK                    = L"Play";
  44. static const WCHAR *g_wszWMDRM_RIGHT_COPY_TO_CD                  = L"Print.redbook";
  45. static const WCHAR *g_wszWMDRM_RIGHT_COPY_TO_SDMI_DEVICE         = L"Transfer.SDMI";
  46. static const WCHAR *g_wszWMDRM_RIGHT_COPY_TO_NON_SDMI_DEVICE     = L"Transfer.NONSDMI";
  47. static const WCHAR *g_wszWMDRM_RIGHT_BACKUP                      = L"Backup";
  48. static const WCHAR *g_wszWMDRM_IsDRM                             = L"IsDRM";
  49. static const WCHAR *g_wszWMDRM_IsDRMCached                       = L"IsDRMCached";
  50. static const WCHAR *g_wszWMDRM_BaseLicenseAcqURL                 = L"BaseLAURL";
  51. static const WCHAR *g_wszWMDRM_Rights                            = L"Rights";
  52. static const WCHAR *g_wszWMDRM_LicenseID                         = L"LID";
  53. static const WCHAR *g_wszWMDRM_ActionAllowed                     = L"ActionAllowed.";
  54. static const WCHAR *g_wszWMDRM_ActionAllowed_Playback            = L"ActionAllowed.Play";
  55. static const WCHAR *g_wszWMDRM_ActionAllowed_CopyToCD            = L"ActionAllowed.Print.redbook";
  56. static const WCHAR *g_wszWMDRM_ActionAllowed_CopyToSDMIDevice    = L"ActionAllowed.Transfer.SDMI";
  57. static const WCHAR *g_wszWMDRM_ActionAllowed_CopyToNonSDMIDevice = L"ActionAllowed.Transfer.NONSDMI";
  58. static const WCHAR *g_wszWMDRM_ActionAllowed_Backup              = L"ActionAllowed.Backup";
  59. static const WCHAR *g_wszWMDRM_LicenseState                      = L"LicenseStateData.";
  60. static const WCHAR *g_wszWMDRM_LicenseState_Playback             = L"LicenseStateData.Play";
  61. static const WCHAR *g_wszWMDRM_LicenseState_CopyToCD             = L"LicenseStateData.Print.redbook";
  62. static const WCHAR *g_wszWMDRM_LicenseState_CopyToSDMIDevice     = L"LicenseStateData.Transfer.SDMI";
  63. static const WCHAR *g_wszWMDRM_LicenseState_CopyToNonSDMIDevice  = L"LicenseStateData.Transfer.NONSDMI";
  64. static const WCHAR *g_wszWMDRM_DRMHeader                         = L"DRMHeader.";
  65. static const WCHAR *g_wszWMDRM_DRMHeader_KeyID                   = L"DRMHeader.KID";
  66. static const WCHAR *g_wszWMDRM_DRMHeader_LicenseAcqURL           = L"DRMHeader.LAINFO";
  67. static const WCHAR *g_wszWMDRM_DRMHeader_ContentID               = L"DRMHeader.CID";
  68. static const WCHAR *g_wszWMDRM_DRMHeader_IndividualizedVersion   = L"DRMHeader.SECURITYVERSION";
  69. static const WCHAR *g_wszWMDRM_DRMHeader_ContentDistributor      = L"DRMHeader.ContentDistributor";
  70. static const WCHAR *g_wszWMDRM_DRMHeader_SubscriptionContentID   = L"DRMHeader.SubscriptionContentID";
  71. typedef 
  72. enum DRM_LICENSE_STATE_CATEGORY
  73.     { WM_DRM_LICENSE_STATE_NORIGHT = 0,
  74. WM_DRM_LICENSE_STATE_UNLIM = WM_DRM_LICENSE_STATE_NORIGHT + 1,
  75. WM_DRM_LICENSE_STATE_COUNT = WM_DRM_LICENSE_STATE_UNLIM + 1,
  76. WM_DRM_LICENSE_STATE_FROM = WM_DRM_LICENSE_STATE_COUNT + 1,
  77. WM_DRM_LICENSE_STATE_UNTIL = WM_DRM_LICENSE_STATE_FROM + 1,
  78. WM_DRM_LICENSE_STATE_FROM_UNTIL = WM_DRM_LICENSE_STATE_UNTIL + 1,
  79. WM_DRM_LICENSE_STATE_COUNT_FROM = WM_DRM_LICENSE_STATE_FROM_UNTIL + 1,
  80. WM_DRM_LICENSE_STATE_COUNT_UNTIL = WM_DRM_LICENSE_STATE_COUNT_FROM + 1,
  81. WM_DRM_LICENSE_STATE_COUNT_FROM_UNTIL = WM_DRM_LICENSE_STATE_COUNT_UNTIL + 1,
  82. WM_DRM_LICENSE_STATE_EXPIRATION_AFTER_FIRSTUSE = WM_DRM_LICENSE_STATE_COUNT_FROM_UNTIL + 1
  83.     }  DRM_LICENSE_STATE_CATEGORY;
  84. typedef struct _DRM_LICENSE_STATE_DATA
  85.     {
  86.     DWORD dwStreamId;
  87.     DRM_LICENSE_STATE_CATEGORY dwCategory;
  88.     DWORD dwNumCounts;
  89.     DWORD dwCount[ 4 ];
  90.     DWORD dwNumDates;
  91.     FILETIME datetime[ 4 ];
  92.     DWORD dwVague;
  93.     }  DRM_LICENSE_STATE_DATA;
  94. typedef 
  95. enum DRM_HTTP_STATUS
  96.     { HTTP_NOTINITIATED = 0,
  97. HTTP_CONNECTING = HTTP_NOTINITIATED + 1,
  98. HTTP_REQUESTING = HTTP_CONNECTING + 1,
  99. HTTP_RECEIVING = HTTP_REQUESTING + 1,
  100. HTTP_COMPLETED = HTTP_RECEIVING + 1
  101.     }  DRM_HTTP_STATUS;
  102. typedef 
  103. enum DRM_INDIVIDUALIZATION_STATUS
  104.     { INDI_UNDEFINED = 0,
  105. INDI_BEGIN = 0x1,
  106. INDI_SUCCEED = 0x2,
  107. INDI_FAIL = 0x4,
  108. INDI_CANCEL = 0x8,
  109. INDI_DOWNLOAD = 0x10,
  110. INDI_INSTALL = 0x20
  111.     }  DRM_INDIVIDUALIZATION_STATUS;
  112. typedef struct _WMIndividualizeStatus
  113.     {
  114.     HRESULT hr;
  115.     DRM_INDIVIDUALIZATION_STATUS enIndiStatus;
  116.     LPSTR pszIndiRespUrl;
  117.     DWORD dwHTTPRequest;
  118.     DRM_HTTP_STATUS enHTTPStatus;
  119.     DWORD dwHTTPReadProgress;
  120.     DWORD dwHTTPReadTotal;
  121.     }  WM_INDIVIDUALIZE_STATUS;
  122. typedef struct _WMGetLicenseData
  123.     {
  124.     DWORD dwSize;
  125.     HRESULT hr;
  126.     WCHAR *wszURL;
  127.     WCHAR *wszLocalFilename;
  128.     BYTE *pbPostData;
  129.     DWORD dwPostDataSize;
  130.     }  WM_GET_LICENSE_DATA;
  131. extern RPC_IF_HANDLE __MIDL_itf_drmexternals_0000_v0_0_c_ifspec;
  132. extern RPC_IF_HANDLE __MIDL_itf_drmexternals_0000_v0_0_s_ifspec;
  133. /* Additional Prototypes for ALL interfaces */
  134. /* end of Additional Prototypes */
  135. #ifdef __cplusplus
  136. }
  137. #endif
  138. #endif