Classify and store data correctly

Classify and store data correctly

Benefits

Description

It is vital in any managed system that applications store their data correctly. You should ensure that your program writes its data (such as user preferences, program state, temp files etc.) to the appropriate location.

Because Windows provides a dynamic operating environment for your application, it is not always safe to make assumptions about the location of files or folders. Default storage locations may change during the runtime of your program.

The classification and appropriate storage of application and user data is a topic discussed in some detail in the data separation guidelines.

To recap, three of the most important things to remember are:

See Also

CSIDLs, Data Separation Guidelines, GetTempPath, SHGetFolderPath