API groups, header files, import libraries, and DLLs

Access interface definition files for all iSeries™ Access for Windows® C/C++ API groups in the iSeries Access for Windows Programmer's Toolkit.

For each iSeries Access for Windows C/C++ API group, the table below provides:

How to access iSeries Access for Windows header files in the Toolkit:

  1. Find the Programmer's Toolkit icon in your iSeries Access for Windows program directory and launch it. If it is not displayed in the program directory, install the Toolkit.
  2. In the left navigation panel, select the appropriate API group.
    Note: Names of some API categories in the Programmer's Toolkit differ from the names that are used in iSeries Access for Windows programming:
    To find this iSeries Access for Windows programming API group header file: Select this Programmer's Toolkit topic:
    Administration Client Information
    Data transformation Data Manipulation
    National language support
    LDAP Directory
    Serviceability Error Handling
    AS/400® Object AS/400 Operations
    System Object Access
  3. Select the C/C++ APIs subtopic in the left navigation panel.
  4. In the right display panel, find the header (.h) file and select it.
Note: In addition to interface descriptions and definitions, the iSeries Access for Windows API group topics in the Toolkit include links to other information resources.

About import libraries:

The import libraries that are shipped with the Programmer'sToolkit were built with the Microsoft® Visual C++ compiler. As a result, they are in the Common Object File Format (COFF). Some compilers, such as Borland's C compiler, do not support COFF. To access the iSeries Access for Windows C/C++ APIs from these compilers, you must create Object Model Format (OMF) import libraries by using the IMPLIB tool. For example:

implib cwbdq.lib %windir%\system32\cwbdq.dll
Note: As of V5R1, the format for the cwbapi.lib import library has changed to make the file size smaller. This library will not work with Microsoft Visual C++ 5.0 or earlier. If you need to call the APIs from Microsoft Visual C++ 5.0 or earlier, you can can get the import library built using the old format at import libraries .(www.ibm.com/eserver/iseries/access/toolkit/importlibraries.htm)
Table 1. iSeries Access for Windows C/C++ API groups, header files, library files, and DLL files
API group Header file Import library DLL
Administration cwbad.h cwbapi.lib cwbad.dll
Communications and Security

cwbcosys.h
cwbco.h
cwb.h

cwbapi.lib cwbco.dll
Data Queues cwbdq.h cwbapi.lib cwbdq.dll
Data transformation cwbdt.h cwbapi.lib cwbdt.dll
Directory Update cwbup.h cwbapi.lib cwbup.dll
Emulation (Standard HLLAPI interface) hapi_c.h pscal32.lib

pcshll.dll
pcshll32.dll

Emulation (Enhanced HLLAPI interface) ehlapi32.h ehlapi32.lib ehlapi32.dll
Emulation (Windows EHLLAPI interface) whllapi.h whllapi.lib whllapi.dll
whlapi32.lib whllapi32.dll
Emulation (HACL interface) eclall.hpp pcseclva.lib pcseclva.dll
pcseclvc.lib pcseclvc.dll
Emulation (PCSAPI interface) pcsapi.h pcscal32.lib

pcsapi.dll
pcsapi32.dll

National language support

(General NLS)

cwbnl.h cwbapi.lib cwbnl.dll
National language support

(Conversion NLS)

cwbnlcnv.h cwbapi.lib cwbnl1.dll
National language support

(Dialog-box NLS)

cwbnldlg.h cwbapi.lib cwbnldlg.dll
iSeries objects cwbobj.h cwbapi.lib cwbobj.dll
ODBC

sql.h
sqlext.h
sqltypes.h
sqlucode.h

odbc32.lib odbc32.dll
Database APIs (Optimized SQL)
Note: Choose this link for important information regarding these APIs.
cwbdb.h cwbapi.lib cwbdb.dll
OLE DB Provider

ad400.h
da400.h

  cwbzzodb.dll

See the OLE DB Section of the Microsoft Universal Data Access Web SiteLink outside the Information Center for more information

Remote Command/Distributed Program Call cwbrc.h cwbapi.lib cwbrc.dll
Serviceability cwbsv.h cwbapi.lib cwbsv.dll
System Object Access cwbsoapi.h cwbapi.lib cwbsoapi.dll