windows - Writing to user documents folder C++ -


i'm trying write info user's documents folder (eg. c:\documents , settings\[username]), can't seem find out how grab path programmatically. there way this? c++, not using .net.

thanks!

shgetfolderpath csidl_personal can used user's documents folder.

wchar path[max_path]; hresult hr = shgetfolderpath(null, csidl_personal, null,                              shgfp_type_current, path); 

Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -