ImportExportFavorites 函数被微软干掉了

来源:互联网 发布:甲醛冬天会挥发吗 知乎 编辑:程序博客网 时间:2024/05/16 23:34

今天运行以前写的一个导入导出IE收藏夹的程序,报错:“对象不支持该操作”

找了下原因:

HRESULT ImportExportFavorites( VARIANT_BOOL fImport,
    BSTR strImpExpPath
);
Parameters

fImport
[in] A VARIANT_BOOL that specifies one of the following possible values.
VARIANT_TRUE
Import is requested.
VARIANT_FALSE
Export is requested.
strImpExpPath
[in] A BSTR that specifies the location (URL) to import or export, depending on fImport. If a value is an empty string, a file dialog box is displayed.
Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

Note  Internet Explorer 6 for Microsoft Windows XP Service Pack 2 (SP2) and later. This method is no longer available.

原来是被MS 干掉了,汗。。。 

 

 

 

原创粉丝点击