VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Get Shell Folders locations using SHGetSpecialFolderLocation API

Karthikeyan  (187 Submissions)   Windows API Call/Explanation   Visual Basic 5.0   Unknown Difficulty   Thu 18th January 2001   Mon 8th February 2021

Get Shell Folders locations using SHGetSpecialFolderLocation API

API Declarations


SHItem As Long
itemID() As Byte
End Type
Private Type ITEMIDLIST
shellID As SHITEMID
End Type
Const DESKTOP = &H0
Const PROGRAMS = &H2
Const MYDOCS = &H5
Const FAVORITES = &H6
Const STARTUP = &H7
Const RECENT = &H8
Const SENDTO = &H9
Const STARTMENU = &HB
Const NETHOOD = &H13
Const FONTS = &H14
Const SHELLNEW = &H15
Const TEMPINETFILES = &H20
Const COOKIES = &H21
Const HISTORY = &H22
Private Declare Function SHGetSpecialFolderLocation Lib "shell32.dll" (ByVal hwnd As Long, ByVal folderid As Long, shidl As ITEMIDLIST) As Long
Private Declare Function SHGetPathFromIDList Lib "shell32.dll" Alias "SHGetPathFromIDListA" (ByVal shidl As Long, ByVal shPath As String) As Long

Rate Get Shell Folders locations using SHGetSpecialFolderLocation API (2(2 Vote))
Get Shell Folders locations using SHGetSpecialFolderLocation API.bas

Get Shell Folders locations using SHGetSpecialFolderLocation API Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters