Ejemplo n.º 1
0
        HResult IMFAsyncCallback.GetParameters(out MFASync pdwFlags, out MFAsyncCallbackQueue pdwQueue)
        {
            pdwFlags = MFASync.None;
            pdwQueue = 0;

            return(HResult.S_OK);
        }
Ejemplo n.º 2
0
 // IMFAsyncCallback 実装
 public HResult GetParameters(out MFASync pdwFlags, out MFAsyncCallbackQueue pdwQueue)
 {
     // このメソッドの実装はオプション。今回は実装しない。
     pdwFlags = MFASync.None;
     pdwQueue = MFAsyncCallbackQueue.Undefined;
     return(HResult.E_NOTIMPL);
 }
Ejemplo n.º 3
0
        public HResult GetParameters(out MFASync pdwFlags, out MFAsyncCallbackQueue pdwQueue)
        {
            pdwFlags = 0;
            pdwQueue = 0;

            return(HResult.E_NOTIMPL);
        }
Ejemplo n.º 4
0
    HResult IMFAsyncCallback.GetParameters(out MFASync pdwFlags, out MFAsyncCallbackQueue pdwQueue)
    {
        pdwFlags = MFASync.FastIOProcessingCallback;
        pdwQueue = MFAsyncCallbackQueue.Standard;

        return(HResult.E_NOTIMPL);
    }
Ejemplo n.º 5
0
        public int GetParameters(out MFASync pdwFlags, out MFAsyncCallbackQueue pdwQueue)
        {
            pdwFlags = MFASync.FastIOProcessingCallback;
            pdwQueue = MFAsyncCallbackQueue.Standard;
            //throw new Exception("The method or operation is not implemented.");

            return 0;
        }
Ejemplo n.º 6
0
    HResult IMFAsyncCallback.GetParameters(out MFASync pdwFlags, out MFAsyncCallbackQueue pdwQueue)
    {
        pdwFlags = MFASync.FastIOProcessingCallback;
        pdwQueue = MFAsyncCallbackQueue.Standard;
        //throw new COMException("IMFAsyncCallback.GetParameters not implemented in Player", E_NotImplemented);

        return(HResult.S_OK);
    }
Ejemplo n.º 7
0
 /// <summary>
 /// Part of the IMFAsyncCallback interface. Provides configuration information
 /// to the dispatching thread for a callback.
 /// </summary>
 /// <param name="pdwFlags">Receives a flag indicating the behavior of the callback object's IMFAsyncCallback::Invoke method.</param>
 /// <param name="pdwQueue">Receives the identifier of the work queue on which the callback is dispatched.</param>
 HResult IMFAsyncCallback.GetParameters(out MFASync pdwFlags, out MFAsyncCallbackQueue pdwQueue)
 {
     // We are saying the callback does very minimal processing. It takes less than 1 millisecond to complete.
     // This callback must be invoked from one of the following work queues:
     //   MFASYNC_CALLBACK_QUEUE_IO
     //   MFASYNC_CALLBACK_QUEUE_TIMER
     pdwFlags = MFASync.FastIOProcessingCallback;
     // The docs say that in most cases, applications should use MFASYNC_CALLBACK_QUEUE_MULTITHREADED.
     // We use the standard here which is used for synchronous operations. Using the standard work queue may run the risk of deadlocking.
     pdwQueue = MFAsyncCallbackQueue.Standard;
     // return our configuration
     return(HResult.S_OK);
 }
Ejemplo n.º 8
0
 public HResult GetParameters(out MFASync a, out MFAsyncCallbackQueue b)
 {
     // Make sure we *never* leave this entry point with an exception
     try
     {
         // Implementation of this method is optional.
         throw new COMException("GetParameters not implemented", (int)HResult.E_NOTIMPL);
     }
     catch (Exception e)
     {
         a = MFASync.None;
         b = MFAsyncCallbackQueue.Undefined;
         return((HResult)Marshal.GetHRForException(e));
     }
 }
Ejemplo n.º 9
0
 HResult IMFAsyncCallback.GetParameters(out MFASync pdwFlags, out MFAsyncCallbackQueue pdwQueue)
 {
     // Make sure we *never* leave this entry point with an exception
     try
     {
         pdwFlags = MFASync.FastIOProcessingCallback;
         pdwQueue = MFAsyncCallbackQueue.Standard;
         //throw new COMException("IMFAsyncCallback.GetParameters not implemented in Player", E_NotImplemented);
         return(HResult.S_OK);
     }
     catch (Exception e)
     {
         pdwQueue = MFAsyncCallbackQueue.Undefined;
         pdwFlags = MFASync.None;
         return((HResult)Marshal.GetHRForException(e));
     }
 }
Ejemplo n.º 10
0
 public int GetParameters(out MFASync pdwFlags, out MFAsyncCallbackQueue pdwQueue)
 {
     // Make sure we *never* leave this entry point with an exception
     try
     {
         throw new NotImplementedException();
     }
     catch (Exception e)
     {
         pdwQueue = MFAsyncCallbackQueue.Undefined;
         pdwFlags = MFASync.None;
         return Marshal.GetHRForException(e);
     }
 }
Ejemplo n.º 11
0
        int IMFAsyncCallback.GetParameters(out MFASync pdwFlags, out MFAsyncCallbackQueue pdwQueue)
        {
            pdwFlags = MFASync.None;
            pdwQueue = 0;

            return S_Ok;
        }
Ejemplo n.º 12
0
 public int GetParameters(out MFASync a, out MFAsyncCallbackQueue b)
 {
     // Make sure we *never* leave this entry point with an exception
     try
     {
         // Implementation of this method is optional.
         throw new COMException("GetParameters not implemented", COMBase.E_NotImplemented);
     }
     catch (Exception e)
     {
         a = MFASync.None;
         b = MFAsyncCallbackQueue.Undefined;
         return Marshal.GetHRForException(e);
     }
 }
Ejemplo n.º 13
0
 public HResult GetParameters(out MFASync pdwFlags, out MFAsyncCallbackQueue pdwQueue)
 {
     pdwFlags = MFASync.FastIOProcessingCallback;
     pdwQueue = MFAsyncCallbackQueue.Standard;
     return(HResult.S_OK);
 }
Ejemplo n.º 14
0
 public int GetParameters(out MFASync pdwFlags, out MFAsyncCallbackQueue pdwQueue)
 {
     pdwFlags = 0;
     pdwQueue = 0;
     return E_NotImplemented;
 }
Ejemplo n.º 15
0
 // IMFAsyncCallback.GetParameters
 // This is allowed to return E_NOTIMPL as a way of specifying
 // there are no special parameters.
 public HResult GetParameters(out MFAsync pdwFlags, out MFAsyncCallbackQueue pdwQueue)
 {
     pdwFlags = MFAsync.None;
     pdwQueue = MFAsyncCallbackQueue.Standard;
     return(HResult.E_NOTIMPL);
 }
Ejemplo n.º 16
0
 int IMFAsyncCallback.GetParameters(out MFASync pdwFlags, out MFAsyncCallbackQueue pdwQueue)
 {
     // Make sure we *never* leave this entry point with an exception
     try
     {
         pdwFlags = MFASync.FastIOProcessingCallback;
         pdwQueue = MFAsyncCallbackQueue.Standard;
         //throw new COMException("IMFAsyncCallback.GetParameters not implemented in Player", E_NotImplemented);
         return S_Ok;
     }
     catch (Exception e)
     {
         pdwQueue = MFAsyncCallbackQueue.Undefined;
         pdwFlags = MFASync.None;
         return Marshal.GetHRForException(e);
     }
 }
Ejemplo n.º 17
0
 public int GetParameters(out MFASync pdwFlags, out MFAsyncCallbackQueue pdwQueue)
 {
     throw new COMException("The method or operation is not implemented.", E_NotImplemented);
 }
Ejemplo n.º 18
0
 void IMFAsyncCallback.GetParameters(out MFASync pdwFlags, out MFAsyncCallbackQueue pdwQueue)
 {
     pdwFlags = MFASync.FastIOProcessingCallback;
     pdwQueue = MFAsyncCallbackQueue.Standard;
     //throw new COMException("IMFAsyncCallback.GetParameters not implemented in Player", E_NotImplemented);
 }
Ejemplo n.º 19
0
 public int GetParameters(out MFASync pdwFlags, out MFAsyncCallbackQueue pdwQueue)
 {
     throw new NotImplementedException();
 }
 HResult IMFAsyncCallback.GetParameters(out MFASync pdwFlags, out MFAsyncCallbackQueue pdwQueue)
 {
     /// add-on interfaces can use explicit implementation...
 }