Ejemplo n.º 1
0
        public int QueryPinInfo(out PinInfo pInfo)
        {
            pInfo = new PinInfo();
            if (m_pUnknown == IntPtr.Zero) return E_NOINTERFACE;

            QueryPinInfoProc _Proc = GetProcDelegate<QueryPinInfoProc>(8);

            if (_Proc == null) return E_UNEXPECTED;

            return (HRESULT)_Proc(
                        m_pUnknown,
                        out pInfo
                        );
        }
Ejemplo n.º 2
0
 /// <summary>
 ///  Free the nested interfaces within a PinInfo struct.
 /// </summary>
 public static void FreePinInfo(PinInfo pinInfo)
 {
   if (pinInfo.filter != null)
   {
     Marshal.ReleaseComObject(pinInfo.filter);
     pinInfo.filter = null;
   }
 }