private CoRegisterMessageFilter ( IMessageFilter lpMessageFilter, IMessageFilter &lplpMessageFilter ) : int | ||
lpMessageFilter | IMessageFilter | |
lplpMessageFilter | IMessageFilter | |
return | int |
/// <summary> /// / /// </summary> /// <param name="isDisposing"></param> protected virtual void Dispose(bool isDisposing) { if (isDisposing) { NativeMethods.IMessageFilter f; var hr = NativeMethods.CoRegisterMessageFilter(_oldFilter, out f); Debug.Assert(hr >= 0, "CoRegisterMessageFilter failed."); } }
/// <summary> /// / /// </summary> public MessageFilter() { var hr = NativeMethods.CoRegisterMessageFilter(this, out _oldFilter); if (hr < 0) { throw Marshal.GetExceptionForHR(hr); } Debug.Assert(hr >= 0, "CoRegisterMessageFilter failed."); }