기존 XP에서는 SHGetFolderPath 함수를 이용하면 가능했지만 Vista에서는 SHGetKnownFolderPath 함수를 사용해야 한다. 아직 Compatibility를 위해서 기존 함수도 지원한다고 하지만 Recommand가 아니니 바꿔야 잠재된 문제를 앱앨 수 있겠죠.
if (_isVista) {
WCHAR *pSavePath = NULL;
HMODULE shell32module = GetModuleHandle("shell32.dll");
// Defined in the platform SDK for Vista
const DWORD KF_FLAG_CREATE = 0x00008000;
if (_isVista) {
WCHAR *pSavePath = NULL;
HMODULE shell32module = GetModuleHandle("shell32.dll");
// Defined in the platform SDK for Vista
const DWORD KF_FLAG_CREATE = 0x00008000;
if (_isVista) { WCHAR *pSavePath = NULL; HMODULE shell32module = GetModuleHandle("shell32.dll"); // Defined in the platform SDK for Vista const DWORD KF_FLAG_CREATE = 0x00008000;