我的目的是使用它来copy一个文件夹内的文件至另外一个文件夹内,应该这个函数有这个功能,但是目前我只能用它来copy一个文件至其根目录下,没办法至其文件夹内.
有经验的高手请指点一下啊.
hr = pIWMDMStorageControl->Insert(
                     WMDM_MODE_BLOCK | /*WMDM_STORAGECONTROL_INSERTINTO*/ WMDM_STORAGECAP_FILESINFOLDERS| WMDM_CONTENT_FILE |WMDM_FILE_CREATE_OVERWRITE, 
                     L"d:\\music\\wm_screen.wmv", 
                     NULL, NULL, 
                     &pIStorage);
不管我如何调整它的参数,都没法将文件copy到指定的文件夹内.下面是它在msdn中的用法说明,真是搞不明白。
IWMDMStorageControl::Insert
The Insert method inserts content onto a storage medium.
Syntax
HRESULT Insert(
  UINT  fuMode,
  LPWSTR  pwszFile,
  IWMDMOperation*  pOperation,
  IWMDMProgress* pProgress,
  IWMDMStorage**  ppNewObject
);The Insert method does not necessarily imply any particular ordering of the contents, although if the file system supports ordering, the Insert method provides that capability by means of the flags WMDM_STORAGECONTROL_INSERTBEFORE and WMDM_STORAGECONTROL_INSERTAFTER. If the file system does not support ordering (for instance, FAT32), WMDM_STORAGECONTROL_INSERTBEFORE and WMDM_STORAGECONTROL_INSERTAFTER will behave identically to each other and will insert the new storage object at the same level as the current object in the file system hierarchy. WMDM_STORAGECONTROL_INSERTINTO can be specified only if the current storage is a folder, and in that case the new storage object will become nested in the current storage.