Esempio n. 1
0
        public virtual int GetSharedResourceAdapterLuid(
            IntPtr hResource,
            out _LUID pLuid
            )
        {
            var fp = GetFunctionPointer(17);

            if (m_GetSharedResourceAdapterLuidFunc == null)
            {
                m_GetSharedResourceAdapterLuidFunc = (GetSharedResourceAdapterLuidFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetSharedResourceAdapterLuidFunc));
            }

            return(m_GetSharedResourceAdapterLuidFunc(m_ptr, hResource, out pLuid));
        }
Esempio n. 2
0
        public virtual int EnumAdapterByLuid(
            _LUID AdapterLuid,
            ref Guid riid,
            out IntPtr ppvAdapter
            )
        {
            var fp = GetFunctionPointer(26);

            if (m_EnumAdapterByLuidFunc == null)
            {
                m_EnumAdapterByLuidFunc = (EnumAdapterByLuidFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(EnumAdapterByLuidFunc));
            }

            return(m_EnumAdapterByLuidFunc(m_ptr, AdapterLuid, ref riid, out ppvAdapter));
        }