예제 #1
0
        private IntPtr LoadExternalFunction(IntPtr ptrDll, string strFunction)
        {
            var ptrFunction = Define.GetProcAddress(ptrDll, strFunction);

            if (ptrFunction == IntPtr.Zero)
            {
                return(IntPtr.Zero);                 //Error check this
            }
            return(ptrFunction);
        }