From: nexolite on
Hi,

I am trying to call IEGetWriteableFolderPath() from a C# BHO.
So I have done this:

[DllImport("ieframe.dll")]
public static extern int IEGetWriteableFolderPath(ref Guid
clsidFolderID, StringBuilder str);

Later in a function:

Guid FOLDERID_InternetCache1 = new
Guid("{352481E8-33BE-4251-BA85-6007CAEDCF9D}");

StringBuilder Path = new StringBuilder();

int RES = IEGetWriteableFolderPath(ref FOLDERID_InternetCache1,
Path);

But I am not getting anything in Path!
Also the return value (RES) is -2147467623 , don't know what this value means.

The Original function Signature is:
HRESULT IEGetWriteableFolderPath(GUID clsidFolderID,LPWSTR *lppwstrPath);

Please help me.

Thanks