shlwapi.dll
- From: "Howard Kaikow" <kaikow@xxxxxxxxxxxxx>
- Date: Thu, 26 Jan 2006 16:13:40 -0500
According to the info I found at MSFT's web site.
PathIsLFNFileSpec requires version 5.0, or later, of shlwapi.dll, with a
minimum of Windows 95 with IE 5
PathFileExists requires version 4.71, or later, of shlwapi.dll, with a
minimum of Windows 95 with IE 4
My Win 95 system has version 5.00.2919.6304 of shlwapi.dll and version
5.00.2919.6307 of IE.
But, running the code below indicates that neither API function is present.
What's amiss?
Option Explicit
Private Declare Function GetModuleHandle Lib "kernel32.dll" Alias
"GetModuleHandleA" _
(ByVal lpModuleName As String) As Long
Private Declare Function GetProcAddress Lib "kernel32" _
(ByVal hModule As Long, ByVal lpProcName As String) As Long
Private Sub Form_Load()
Me.AutoRedraw = True
If GetProcAddress(GetModuleHandle("shlwapi.dll"), "PathIsLFNFileSpecA")
= 0 Then
Me.Print "Missing PathIsLFNFileSpecA"
Else
Me.Print "Found PathIsLFNFileSpecA"
End If
If GetProcAddress(GetModuleHandle("shlwapi.dll"), "PathFileExistsA") = 0
Then
Me.Print "Missing PathFileExistsA"
Else
Me.Print "Found PathFileExistsA"
End If
If GetProcAddress(GetModuleHandle("kernel32.dll"),
"GetDiskFreeSpaceExA") = 0 Then
Me.Print "Missing GetDiskFreeSpaceExA"
Else
Me.Print "Found GetDiskFreeSpaceExA"
End If
If GetProcAddress(GetModuleHandle("kernel32.dll"), "GetDiskFreeSpaceA")
= 0 Then
Me.Print "Missing GetDiskFreeSpaceA"
Else
Me.Print "Found GetDiskFreeSpaceA"
End If
End Sub
--
http://www.standards.com/; See Howard Kaikow's web site.
.
- Follow-Ups:
- Re: shlwapi.dll
- From: Karl E. Peterson
- Re: shlwapi.dll
- Prev by Date: Re: using structs like BROWSEINFO and OPENFILENAME (string members
- Next by Date: Re: VB's Menu's
- Previous by thread: VB's Menu's
- Next by thread: Re: shlwapi.dll
- Index(es):
Relevant Pages
|
Loading