Beispiel #1
0
        HResult IMFAsyncCallback.GetParameters(out MFASync pdwFlags, out MFAsyncCallbackQueue pdwQueue)
        {
            pdwFlags = MFASync.None;
            pdwQueue = 0;

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

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

        return(HResult.E_NOTIMPL);
    }
        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;
        }
Beispiel #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);
    }
Beispiel #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);
 }
Beispiel #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));
     }
 }
Beispiel #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));
     }
 }
Beispiel #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);
     }
 }
Beispiel #11
0
        int IMFAsyncCallback.GetParameters(out MFASync pdwFlags, out MFAsyncCallbackQueue pdwQueue)
        {
            pdwFlags = MFASync.None;
            pdwQueue = 0;

            return S_Ok;
        }
Beispiel #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);
     }
 }
Beispiel #13
0
 public HResult GetParameters(out MFASync pdwFlags, out MFAsyncCallbackQueue pdwQueue)
 {
     pdwFlags = MFASync.FastIOProcessingCallback;
     pdwQueue = MFAsyncCallbackQueue.Standard;
     return(HResult.S_OK);
 }
Beispiel #14
0
 public int GetParameters(out MFASync pdwFlags, out MFAsyncCallbackQueue pdwQueue)
 {
     pdwFlags = 0;
     pdwQueue = 0;
     return E_NotImplemented;
 }
Beispiel #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);
 }
Beispiel #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);
     }
 }
Beispiel #17
0
 public int GetParameters(out MFASync pdwFlags, out MFAsyncCallbackQueue pdwQueue)
 {
     throw new COMException("The method or operation is not implemented.", E_NotImplemented);
 }
Beispiel #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);
 }
Beispiel #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...
 }