Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 


Quelle  WMFPMPServer.cpp   Sprache: C

 
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */


#include "WMFPMPServer.h"

#include <mfapi.h>
#include <mferror.h>

#include "WMFClearKeyUtils.h"

namespace mozilla {

using Microsoft::WRL::ComPtr;
using Microsoft::WRL::MakeAndInitialize;

HRESULT WMFPMPServer::RuntimeClassInitialize(
    ABI::Windows::Foundation::Collections::IPropertySet* aPropertyPmp) {
  ENTRY_LOG();
  mPropertyPmp = aPropertyPmp;
  RETURN_IF_FAILED(MFCreatePMPMediaSession(MFPMPSESSION_IN_PROCESS, nullptr,
                                           &mMediaSession, nullptr));
  RETURN_IF_FAILED(MFGetService(mMediaSession.Get(), MF_PMP_SERVER_CONTEXT,
                                IID_PPV_ARGS(&mPmpServer)));
  RETURN_IF_FAILED(MFGetService(mMediaSession.Get(), MF_PMP_SERVICE,
                                IID_PPV_ARGS(&mPmpHost)));
  return S_OK;
}

STDMETHODIMP WMFPMPServer::GetIids(ULONG* aIidCount, IID** aIids) {
  NOT_IMPLEMENTED();
  return E_NOTIMPL;
}

STDMETHODIMP WMFPMPServer::GetRuntimeClassName(
    _COM_Outptr_ HSTRING* aClassName) {
  NOT_IMPLEMENTED();
  return E_NOTIMPL;
}

STDMETHODIMP WMFPMPServer::GetTrustLevel(TrustLevel* aTrustLevel) {
  NOT_IMPLEMENTED();
  return E_NOTIMPL;
}
STDMETHODIMP WMFPMPServer::get_Properties(
    ABI::Windows::Foundation::Collections::IPropertySet** aPpProperties) {
  ENTRY_LOG();
  RETURN_IF_FAILED(mPropertyPmp.CopyTo(aPpProperties));
  return S_OK;
}

STDMETHODIMP WMFPMPServer::GetService(REFGUID aGuidService, REFIID aRiid,
                                      LPVOID* aObject) {
  ENTRY_LOG();
  if (!aObject) {
    return E_POINTER;
  }
  if (aGuidService == MF_PMP_SERVER_CONTEXT) {
    RETURN_IF_FAILED(mPmpServer.CopyTo(aRiid, aObject));
  } else if (aGuidService == MF_PMP_SERVICE && aRiid == IID_IMFPMPHost) {
    RETURN_IF_FAILED(mPmpHost.CopyTo(aRiid, aObject));
  } else {
    RETURN_IF_FAILED(MF_E_UNSUPPORTED_SERVICE);
  }
  return S_OK;
}

}  // namespace mozilla

100%


¤ Dauer der Verarbeitung: 0.15 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung ist noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Produkte
     Quellcodebibliothek

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Monitoring

Montastic status badge