// IMFAsyncCallback 実装 public HResult GetParameters(out MFASync pdwFlags, out MFAsyncCallbackQueue pdwQueue) { // このメソッドの実装はオプション。今回は実装しない。 pdwFlags = MFASync.None; pdwQueue = MFAsyncCallbackQueue.Undefined; return(HResult.E_NOTIMPL); }
HResult IMFAsyncCallback.GetParameters(out MFASync pdwFlags, out MFAsyncCallbackQueue pdwQueue) { pdwFlags = MFASync.FastIOProcessingCallback; pdwQueue = MFAsyncCallbackQueue.Standard; return(HResult.E_NOTIMPL); }
HResult IMFAsyncCallback.GetParameters(out MFASync pdwFlags, out MFAsyncCallbackQueue pdwQueue) { pdwFlags = MFASync.None; pdwQueue = 0; return(HResult.S_OK); }
public HResult GetParameters(out MFASync pdwFlags, out MFAsyncCallbackQueue pdwQueue) { pdwFlags = 0; pdwQueue = 0; 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; }
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); }
/// <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); }
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)); } }
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)); } }
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); } }
int IMFAsyncCallback.GetParameters(out MFASync pdwFlags, out MFAsyncCallbackQueue pdwQueue) { pdwFlags = MFASync.None; pdwQueue = 0; return S_Ok; }
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); } }
public HResult GetParameters(out MFASync pdwFlags, out MFAsyncCallbackQueue pdwQueue) { pdwFlags = MFASync.FastIOProcessingCallback; pdwQueue = MFAsyncCallbackQueue.Standard; return(HResult.S_OK); }
public int GetParameters(out MFASync pdwFlags, out MFAsyncCallbackQueue pdwQueue) { pdwFlags = 0; pdwQueue = 0; return E_NotImplemented; }
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); } }
public int GetParameters(out MFASync pdwFlags, out MFAsyncCallbackQueue pdwQueue) { throw new COMException("The method or operation is not implemented.", E_NotImplemented); }
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); }
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... }