28 # define _WIN32_IE 0x0501
44 static char knownpath[MAX_PATH * 3 + 128] = {0};
45 PWSTR knownpath_16 =
NULL;
47 HRESULT hResult = SHGetKnownFolderPath(
48 FOLDERID_ProgramData, KF_FLAG_DEFAULT,
NULL, &knownpath_16);
50 if (hResult == S_OK) {
52 CoTaskMemFree(knownpath_16);
53 strcat(knownpath,
"\\Blender Foundation\\Blender\\");
54 strcat(knownpath, versionstr);
63 static char knownpath[MAX_PATH * 3 + 128] = {0};
64 PWSTR knownpath_16 =
NULL;
66 HRESULT hResult = SHGetKnownFolderPath(
67 FOLDERID_RoamingAppData, KF_FLAG_DEFAULT,
NULL, &knownpath_16);
69 if (hResult == S_OK) {
71 CoTaskMemFree(knownpath_16);
72 strcat(knownpath,
"\\Blender Foundation\\Blender\\");
73 strcat(knownpath, versionstr);
86 folderid = FOLDERID_Desktop;
89 folderid = FOLDERID_Documents;
92 folderid = FOLDERID_Downloads;
95 folderid = FOLDERID_Music;
98 folderid = FOLDERID_Pictures;
101 folderid = FOLDERID_Videos;
106 "GHOST_SystemPathsWin32::getUserSpecialDir(): Invalid enum value for type parameter");
110 static char knownpath[MAX_PATH * 3] = {0};
111 PWSTR knownpath_16 =
NULL;
112 HRESULT hResult = SHGetKnownFolderPath(folderid, KF_FLAG_DEFAULT,
NULL, &knownpath_16);
114 if (hResult == S_OK) {
116 CoTaskMemFree(knownpath_16);
120 CoTaskMemFree(knownpath_16);
126 static char fullname[MAX_PATH * 3] = {0};
127 wchar_t fullname_16[MAX_PATH * 3];
129 if (GetModuleFileNameW(0, fullname_16, MAX_PATH)) {
141 SHAddToRecentDocs(SHARD_PATHW, filename_16);
#define GHOST_ASSERT(x, info)
GHOST_TUserSpecialDirTypes
@ GHOST_kUserSpecialDirDesktop
@ GHOST_kUserSpecialDirMusic
@ GHOST_kUserSpecialDirPictures
@ GHOST_kUserSpecialDirVideos
@ GHOST_kUserSpecialDirDownloads
@ GHOST_kUserSpecialDirDocuments
unsigned char GHOST_TUns8
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
~GHOST_SystemPathsWin32()
const GHOST_TUns8 * getSystemDir(int version, const char *versionstr) const
void addToSystemRecentFiles(const char *filename) const
const GHOST_TUns8 * getUserSpecialDir(GHOST_TUserSpecialDirTypes type) const
const GHOST_TUns8 * getBinaryDir() const
const GHOST_TUns8 * getUserDir(int version, const char *versionstr) const
int conv_utf_16_to_8(const wchar_t *in16, char *out8, size_t size8)
#define UTF16_ENCODE(in8str)
#define UTF16_UN_ENCODE(in8str)