Hi all,
This is what I do to find the exact path of 'My documents' folder on any XP machine. But it fails on some XP systems.
Can there be any flaws in the above technique?Code:CRegKey regKey; regKey.Open(HKEY_CURRENT_USER,"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders") regKey.QueryValue(NULL,"Personal",&dwValData); sMyDocumentsPath = (char *)malloc(dwValData); regKey.QueryValue(sMyDocumentsPath,"Personal",&dwValData)


Reply With Quote
)
