Exemple #1
0
        public virtual int CreateSharedHandle(
            ref _SECURITY_ATTRIBUTES pAttributes,
            uint dwAccess,
            ref ushort lpName,
            out IntPtr pHandle
            )
        {
            var fp = GetFunctionPointer(13);

            if (m_CreateSharedHandleFunc == null)
            {
                m_CreateSharedHandleFunc = (CreateSharedHandleFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CreateSharedHandleFunc));
            }

            return(m_CreateSharedHandleFunc(m_ptr, ref pAttributes, dwAccess, ref lpName, out pHandle));
        }
Exemple #2
0
        public virtual int CreateSharedHandle(
            ID3D12DeviceChild pObject,
            ref _SECURITY_ATTRIBUTES pAttributes,
            uint Access,
            ref ushort Name,
            out IntPtr pHandle
            )
        {
            var fp = GetFunctionPointer(31);

            if (m_CreateSharedHandleFunc == null)
            {
                m_CreateSharedHandleFunc = (CreateSharedHandleFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CreateSharedHandleFunc));
            }

            return(m_CreateSharedHandleFunc(m_ptr, pObject != null ? pObject.Ptr : IntPtr.Zero, ref pAttributes, Access, ref Name, out pHandle));
        }