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