Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to use the API of TSM

Status
Not open for further replies.

valley521999

Technical User
May 29, 2003
2
0
0
CN
I use com interface£¬and use the archive function of TSM API£¬and use thes function in my asp applications.Then I archive files.The codes of com as below:
sFileName = filespace + highlevel + lowlevel;
HANDLE hFile = ::CreateFile(sFileName,GENERIC_READ,FILE_SHARE_READ,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);
HANDLE hMap = ::CreateFileMapping(hFile,NULL,PAGE_READONLY,0,0,NULL);
LPVOID lpvFile = ::MapViewOfFile(hMap,FILE_MAP_READ,0,0,0);
DWORD dwFileSize = ::GetFileSize(hFile,NULL);
dataBlk.bufferPtr = (char *)lpvFile;
rc = dsmSendData(dsmHandle,&dataBlk);


But when I use command or gui,I can't find the archive files.
Help me please.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top