Use SHGetFolderPath
with CSIDL_COMMON_APPDATA
as the CSIDL.
TCHAR szPath[MAX_PATH];
if (SUCCEEDED(SHGetFolderPath(NULL, CSIDL_COMMON_APPDATA, NULL, 0, szPath)))
{
//....
}
More Related Contents:
- Deploying Qt 5 App on Windows
- Is there a limit on number of open files in Windows
- OpenCV with Network Cameras
- Qt 5.1.1: Application failed to start because platform plugin “windows” is missing
- Start Windows Service From Application without Admin right(c++)
- Create a directory if it doesn’t exist
- How do I input variables using cin without creating a new line?
- C++ compiling on Windows and Linux: ifdef switch [duplicate]
- What is the meaning and usage of __stdcall?
- How to properly uninitialize OpenSSL
- How should I use FormatMessage() properly in C++?
- Creating, opening and printing a word file from C++
- How do I tell CMake to use Clang on Windows?
- What std::locale names are available on common windows compilers?
- Converting YUV into BGR or RGB in OpenCV
- C++ Executing CMD Commands
- How can I read BMP pixel values into an array?
- Is MsiOpenProduct the correct way to read properties from an installed product?
- Why does Windows 10 start extra threads in my program?
- Console output in a Qt GUI app?
- Using C++ to edit the registry
- Can OpenSSL on Windows use the system certificate store?
- Check the file-size without opening file in C++?
- C++ Memory Barriers for Atomics
- Win32: How to hide 3rd party windows in taskbar by hWnd
- Can’t get visual studio C++ include file ‘excpt.h’ to get installed
- Passing reference to STL vector over dll boundary
- Getting another process command line in Windows
- Visual Studio 2013: CL.exe exited with code -1073741515
- How can I cin and cout some unicode text?