📄 dlproc.c
字号:
/* * dlproc.c * * $Id: dlproc.c,v 1.9 2001/06/04 14:01:25 source Exp $ * * Load driver and resolve driver's function entry point * * The iODBC driver manager. * * Copyright (C) 1995 by Ke Jin <kejin@empress.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the Free * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */#include <iodbc.h>#include <sql.h>#include <sqlext.h>#include <dlproc.h>#include <herr.h>#include <henv.h>#include <hdbc.h>#include <itrace.h>char *odbcapi_symtab[] ={ "UNKNOWN FUNCTION"#define FUNCDEF(A, B, C) ,C#include "henv.ci"#undef FUNCDEF};HPROC_iodbcdm_getproc (HDBC hdbc, int idx){ CONN (pdbc, hdbc); ENV_t FAR *penv; HPROC FAR *phproc; if (idx <= 0 || idx >= __LAST_API_FUNCTION__) return SQL_NULL_HPROC; penv = (ENV_t FAR *) (pdbc->henv); if (penv == NULL) return SQL_NULL_HPROC; phproc = penv->dllproc_tab + idx; if (*phproc == SQL_NULL_HPROC) *phproc = _iodbcdm_dllproc (penv->hdll, odbcapi_symtab[idx]); return *phproc;}HDLL_iodbcdm_dllopen (char FAR * path){ return (HDLL) DLL_OPEN (path);}HPROC_iodbcdm_dllproc (HDLL hdll, char FAR * sym){ return (HPROC) DLL_PROC (hdll, sym);}int_iodbcdm_dllclose (HDLL hdll){ DLL_CLOSE (hdll); return 0;}char *_iodbcdm_dllerror (){ return DLL_ERROR ();}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -