get start menu path

Blitz3D Forums/Blitz3D Programming/get start menu path

There seems to be a command SHGetSpecialFolderPath in shell32.dll. Not sure if it is .net related. I was able to use it to retreive the startmenu name using this code:
;--------------------------------------------------------------------------------

.lib "shell32.dll"

SHGetSpecialFolderPath%(hwndOwner$,lpszPath*,nFolder%,fCreate%):"SHGetSpecialFolderPathA" 

;--------------------------------------------------------------------------------

Graphics 800, 600, 0, 2

bank = CreateBank(255)
hwnd = SystemProperty$("apphwnd")
SHGetSpecialFolderPath(hwnd, bank, $16, False)

For i = 0 To 254
Write Chr$(PeekByte(bank, i))
Next

Print
WaitKey()
End