GetProcAddress() приватный Метод

private GetProcAddress ( IntPtr handle, string funcname ) : IntPtr
handle IntPtr
funcname string
Результат IntPtr
Пример #1
0
        /*
         * IWindowInfo IGraphicsContextInternal.Info
         * {
         *  get { return (IWindowInfo)windowInfo; }
         * }
         */

        public override IntPtr GetAddress(IntPtr function_string)
        {
            IntPtr address = Wgl.GetProcAddress(function_string);

            if (!IsValid(address))
            {
                address = Functions.GetProcAddress(WinFactory.OpenGLHandle, function_string);
            }
            return(address);
        }
Пример #2
0
            Delegate Load(string name, Type type)
            {
                IntPtr pfunc = Functions.GetProcAddress(dll, name);

                if (pfunc != IntPtr.Zero)
                {
                    return(Marshal.GetDelegateForFunctionPointer(pfunc, type));
                }
                return(null);
            }
Пример #3
0
        internal static IntPtr GetAddress(string function_string)
        {
            IntPtr address = Wgl.GetProcAddress(function_string);

            if (!IsValid(address))
            {
                address = Functions.GetProcAddress(WinFactory.OpenGLHandle, function_string);
            }
            return(address);
        }
Пример #4
0
            private Delegate Load(ushort ordinal, Type type)
            {
                IntPtr pfunc = Functions.GetProcAddress(dll, (IntPtr)ordinal);

                if (pfunc != IntPtr.Zero)
                {
                    return(Marshal.GetDelegateForFunctionPointer(pfunc, type));
                }
                return(null);
            }