Link C++ to folder

Can anyone tell how to link a c++ program with a folder
for example : to use a username and password to access a certain file or foleder.
Topic archived. No new replies allowed.