How do I find the desktop's directory?
Printable View
How do I find the desktop's directory?
SHGetFolderLocation look it up
Yes, but you also have to translate the ID.
Any one got any tips for that?
lol yeah I got it thanks tho,
Code:LPITEMIDLIST dd = NULL;
SHGetSpecialFolderLocation(
NULL,
CSIDL_DESKTOPDIRECTORY,
&dd);
char szpathint[_MAX_PATH];
SHGetPathFromIDList(dd,szpathint);