Tivoli Header

Tivoli Storage Manager Using the Application Program Interface

Windows 32-bit Operating System

Note:
For Windows NT applications that were built with the Version 3.1 API, replace the adsmv3.dll with the adsmv3.dll and tsmapi.dll. For new applications, build with, and use the tsmapi.dll.

We recommend that you use dynamic loading. See dynaload.c and implementation in the sample code. For Windows operating systems, the files that are listed in Table 8 include the source files that you need to build the sample application. This sample application is included in the API package.

Table 8. Files That You Need to Build the Windows 32-bit API Sample Application

File Names
Description
api.txt
Readme file
dapismp
API sample program
tsmapi.dll
adsmv3.dll

API DLLs
dsmrc.h
dsmapitd.h
dsmapips.h
dsmapifp.h
dsmapidl.h
release.h

Return codes header file
Common type definitions header file
Operating system-specific type definitions header file
Function prototype header file
Dynamically loaded function prototype header file
Release values header file
dapidata.h
dapint64.h
dapitype.h
dapiutil.h

Source code header files
tsmapi.lib

Implicit library
dapibkup.c
dapiinit.c
dapint64.c
dapipref.c
dapiproc.c
dapiproc.h
dapipw.c
dapiqry.c
dapirc.c
dapismp.c
dapiutil.c
dynaload.c
Source code files for dapismp.exe
dapismp.mak

Visual C++ makefile for API sample program
callmt1.c
callmt2.c
makemt.mak

Multi-threaded sample files
Multi-threaded sample files
Makefiles to build multi-threaded samples
for your operating system

The API\OBJ directory contains the API sample program object files. The API\SAMPRUN directory contains the sample program. The dapismp sample program contains the execution directory.

The DLLs (tsmapi.dll and adsmv3.dll) are all 32-bit DLLs.

Use the Microsoft Visual C++ Level 6.0 compiler and the makefile, dapismp.mak, to compile the API sample application, dapismp. It might be necessary to adjust the makefiles to your environment (specifically, the library or the Include directories).

To run the sample application, enter dapismp from the api\samprun directory.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]