GetProcAddress() private method

private GetProcAddress ( IntPtr handle, string funcname ) : IntPtr
handle IntPtr
funcname string
return IntPtr
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
            }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
            }