I just looked the function SHGetFolderLocation up in the MSDN Library. According to that information, this function is only supported on Windows ME, Windows 2000 and Windows XP. So, unfortunately, the only answer there seems to be is "upgrade your OS". It might be possible to patch together a mix of Win98 and WinME, but I highly doubt that WinME's shell32.dll could possibly work on Win98. Plus, you might end up having no working OS at all. I'm sorry that there is no better answer.