UNPKG

@nodert-win10/windows.media.protection

Version:

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

196 lines (150 loc) 5.63 kB
ProtectionRenewalContract = (function () { var cls = function ProtectionRenewalContract() { }; return cls; }) (); exports.ProtectionRenewalContract = ProtectionRenewalContract; _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(); _GraphicsTrustStatus = function () { this.trustNotRequired = 0; this.trustEstablished = 1; this.environmentNotSupported = 2; this.driverNotSupported = 3; this.driverSigningFailure = 4; this.unknownFailure = 5; } exports.GraphicsTrustStatus = new _GraphicsTrustStatus(); _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(); 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; ServiceRequestedEventArgs = (function () { var cls = function ServiceRequestedEventArgs() { this.completion = new MediaProtectionServiceCompletion(); this.request = new IMediaProtectionServiceRequest(); this.mediaPlaybackItem = new Object(); }; return cls; }) (); exports.ServiceRequestedEventArgs = ServiceRequestedEventArgs; ComponentLoadFailedEventArgs = (function () { var cls = function ComponentLoadFailedEventArgs() { this.completion = new MediaProtectionServiceCompletion(); this.information = new RevocationAndRenewalInformation(); }; return cls; }) (); exports.ComponentLoadFailedEventArgs = ComponentLoadFailedEventArgs; 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; 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; MediaProtectionPMPServer = (function () { var cls = function MediaProtectionPMPServer() { this.properties = new Object(); }; var cls = function MediaProtectionPMPServer(pProperties) { this.properties = new Object(); }; return cls; }) (); exports.MediaProtectionPMPServer = MediaProtectionPMPServer; IMediaProtectionServiceRequest = (function () { var cls = function IMediaProtectionServiceRequest() { this.protectionSystem = new String(); this.type = new String(); }; return cls; }) (); exports.IMediaProtectionServiceRequest = IMediaProtectionServiceRequest; 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; 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;