valley521999
Technical User
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.
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.