Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / COM / November 2007



Tip: Looking for answers? Try searching our database.

IEGetWriteableFolderPath with VB6 / IE7?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Scott McBurney - 18 May 2007 22:37 GMT
Does anyone know exactly how to successfully call IEGetWriteableFolderPath
using VB6 and IE7?

When I try, it returns error 80004001.

Signature

Scott McBurney
Software Developer
LexisNexis

MikeD - 18 May 2007 23:42 GMT
> Does anyone know exactly how to successfully call IEGetWriteableFolderPath
> using VB6 and IE7?
>
> When I try, it returns error 80004001.

We can only determine what you may be doing wrong if you post your code.  Be
SURE to include any API function declarations, constants, and/or structures
and the problem is frequently with the declaration/definition of any of
these.

Signature

Mike
Microsoft MVP Visual Basic

Scott McBurney - 21 May 2007 15:23 GMT
Ok, let me be a little more specific.
IEGetWriteableFolderPath takes a GUID as a parameter.  Any idea what format
that really is in VB6?  How do I get a GUID into the proper format for this
call?

Signature

Scott McBurney
Software Developer
Interface Software, Inc.

> > Does anyone know exactly how to successfully call IEGetWriteableFolderPath
> > using VB6 and IE7?
[quoted text clipped - 5 lines]
> and the problem is frequently with the declaration/definition of any of
> these.
Hoochie - 08 Nov 2007 06:54 GMT
''''''''''These APIs are only for Windows Vista''''''''''''''''''''
'
Private Const FOLDERID_InternetCache = "{352481E8-33BE-4251-BA85-6007CAEDCF9D}
"
Private Const FOLDERID_History = "{D9DC8A3B-B784-432E-A781-5A1130A75963}"
Private Const FOLDERID_Cookies = "{2B0F765D-C0E9-4171-908E-08A611B84FF6}"
Private Const FOLDERID_LocalAppDataLow = "{A520A1A4-1780-4FF6-BD18-
167343C5AF16}"
Private Type GUID
  Data1 As Long
  Data2 As Integer
  Data3 As Integer
  Data4(7) As Byte
End Type
Private Declare Function CLSIDFromString Lib "ole32" _
                        (ByVal lpszGuid As Long, _
                         pGuid As GUID) As Long

Private Const E_ACCESSDENIED = &H80070005
Private Declare Function IEGetWriteableFolderPath Lib "ieframe" _
                       (clsidFolderID As GUID, dirPath As String) As Long





Public Sub getWritableFilePath(filePath As String)
Dim clsWritableFile As GUID
Dim hr As Long, tmpPath As String
CLSIDFromString StrPtr(FOLDERID_LocalAppDataLow), clsWritableFile
hr = IEGetWriteableFolderPath(clsWritableFile, tmpPath)
If hr = 0 Then filePath = tmpPath
End Sub

>Ok, let me be a little more specific.
>IEGetWriteableFolderPath takes a GUID as a parameter.  Any idea what format
[quoted text clipped - 6 lines]
>> and the problem is frequently with the declaration/definition of any of
>> these.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.