UNPKG

@nodert-win11/windows.media.protection

Version:

Use the Windows.Media.Protection UWP API directly from Node.js

255 lines (196 loc) 7.33 kB
ProtectionRenewalContract = (function () { var cls = function ProtectionRenewalContract() { }; return cls; }) (); exports.ProtectionRenewalContract = ProtectionRenewalContract; _GraphicsTrustStatus = function () { this.trustNotRequired = 0; this.trustEstablished = 1; this.environmentNotSupported = 2; this.driverNotSupported = 3; this.driverSigningFailure = 4; this.unknownFailure = 5; } exports.GraphicsTrustStatus = new _GraphicsTrustStatus(); _HdcpProtection = function () { this.off = 0; this.on = 1; this.onWithTypeEnforcement = 2; } exports.HdcpProtection = new _HdcpProtection(); _HdcpSetProtectionResult = function () { this.success = 0; this.timedOut = 1; this.notSupported = 2; this.unknownFailure = 3; } exports.HdcpSetProtectionResult = new _HdcpSetProtectionResult(); _ProtectionCapabilityResult = function () { this.notSupported = 0; this.maybe = 1; this.probably = 2; } exports.ProtectionCapabilityResult = new _ProtectionCapabilityResult(); _RenewalStatus = function () { this.notStarted = 0; this.updatesInProgress = 1; this.userCancelled = 2; this.appComponentsMayNeedUpdating = 3; this.noComponentsFound = 4; } exports.RenewalStatus = new _RenewalStatus(); _RevocationAndRenewalReasons = function () { this.userModeComponentLoad = 0; this.kernelModeComponentLoad = 1; this.appComponent = 2; this.globalRevocationListLoadFailed = 3; this.invalidGlobalRevocationListSignature = 4; this.globalRevocationListAbsent = 5; this.componentRevoked = 6; this.invalidComponentCertificateExtendedKeyUse = 7; this.componentCertificateRevoked = 8; this.invalidComponentCertificateRoot = 9; this.componentHighSecurityCertificateRevoked = 10; this.componentLowSecurityCertificateRevoked = 11; this.bootDriverVerificationFailed = 12; this.componentSignedWithTestCertificate = 13; this.encryptionFailure = 14; } exports.RevocationAndRenewalReasons = new _RevocationAndRenewalReasons(); ComponentLoadFailedEventArgs = (function () { var cls = function ComponentLoadFailedEventArgs() { this.completion = new MediaProtectionServiceCompletion(); this.information = new RevocationAndRenewalInformation(); }; return cls; }) (); exports.ComponentLoadFailedEventArgs = ComponentLoadFailedEventArgs; ComponentRenewal = (function () { var cls = function ComponentRenewal() { }; cls.renewSystemComponentsAsync = function renewSystemComponentsAsync(information, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="information" type="RevocationAndRenewalInformation">A param.</param> /// </signature> } return cls; }) (); exports.ComponentRenewal = ComponentRenewal; HdcpSession = (function () { var cls = function HdcpSession() { }; cls.prototype.setDesiredMinProtectionAsync = function setDesiredMinProtectionAsync(protection, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="protection" type="HdcpProtection">A param.</param> /// </signature> } cls.prototype.isEffectiveProtectionAtLeast = function isEffectiveProtectionAtLeast(protection) { /// <signature> /// <summary>Function summary.</summary> /// <param name="protection" type="HdcpProtection">A param.</param> /// <returns type="Boolean" /> /// </signature> return new Boolean(); } cls.prototype.getEffectiveProtection = function getEffectiveProtection() { /// <signature> /// <summary>Function summary.</summary> /// <returns type="HdcpProtection" /> /// </signature> return new HdcpProtection(); } cls.prototype.close = function close() { } cls.prototype.addListener = function addListener(eventName, callback){} cls.prototype.removeListener = function removeListener(eventName, callback){} cls.prototype.on = function on(eventName, callback){} cls.prototype.off = function off(eventName, callback){} return cls; }) (); exports.HdcpSession = HdcpSession; IMediaProtectionServiceRequest = (function () { var cls = function IMediaProtectionServiceRequest() { this.protectionSystem = new String(); this.type = new String(); }; return cls; }) (); exports.IMediaProtectionServiceRequest = IMediaProtectionServiceRequest; MediaProtectionManager = (function () { var cls = function MediaProtectionManager() { this.properties = new Object(); }; cls.prototype.addListener = function addListener(eventName, callback){} cls.prototype.removeListener = function removeListener(eventName, callback){} cls.prototype.on = function on(eventName, callback){} cls.prototype.off = function off(eventName, callback){} return cls; }) (); exports.MediaProtectionManager = MediaProtectionManager; MediaProtectionPMPServer = (function () { var cls = function MediaProtectionPMPServer() { this.properties = new Object(); }; var cls = function MediaProtectionPMPServer(pProperties) { this.properties = new Object(); }; return cls; }) (); exports.MediaProtectionPMPServer = MediaProtectionPMPServer; MediaProtectionServiceCompletion = (function () { var cls = function MediaProtectionServiceCompletion() { }; cls.prototype.complete = function complete(success) { /// <signature> /// <summary>Function summary.</summary> /// <param name="success" type="Boolean">A param.</param> /// </signature> } return cls; }) (); exports.MediaProtectionServiceCompletion = MediaProtectionServiceCompletion; ProtectionCapabilities = (function () { var cls = function ProtectionCapabilities() { }; cls.prototype.isTypeSupported = function isTypeSupported(type, keySystem) { /// <signature> /// <summary>Function summary.</summary> /// <param name="type" type="String">A param.</param> /// <param name="keySystem" type="String">A param.</param> /// <returns type="ProtectionCapabilityResult" /> /// </signature> return new ProtectionCapabilityResult(); } return cls; }) (); exports.ProtectionCapabilities = ProtectionCapabilities; RevocationAndRenewalInformation = (function () { var cls = function RevocationAndRenewalInformation() { this.items = new Object(); }; return cls; }) (); exports.RevocationAndRenewalInformation = RevocationAndRenewalInformation; RevocationAndRenewalItem = (function () { var cls = function RevocationAndRenewalItem() { this.headerHash = new String(); this.name = new String(); this.publicKeyHash = new String(); this.reasons = new RevocationAndRenewalReasons(); this.renewalId = new String(); }; return cls; }) (); exports.RevocationAndRenewalItem = RevocationAndRenewalItem; ServiceRequestedEventArgs = (function () { var cls = function ServiceRequestedEventArgs() { this.completion = new MediaProtectionServiceCompletion(); this.request = new IMediaProtectionServiceRequest(); this.mediaPlaybackItem = new Object(); }; return cls; }) (); exports.ServiceRequestedEventArgs = ServiceRequestedEventArgs;