rem: CreateDirectory(folder_path,NULL);
add: hr = GetLastError();
context: HRESULT win32_get_folder_path(gchar* folder_path,const int csidl)        /* {{{ */{       HRESULT hr          = NO_ERROR;    // Allocate a pointer to an Item ID list    LPITEMIDLIST pidl;    *folder_path = 0;    hr = SHGetFolderPath(NULL, csidl, NULL, 0, folder_path);    // Force the application of the CSIDL_FLAG_CREATE nativly supported by XP only     if (!hr && (( csidl & CSIDL_FLAG_CREATE) == CSIDL_FLAG_CREATE))    {        CreateDirectory(folder_path,NULL);    }    return hr;} /* }}}  */