• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

The MinGW.org Windows System Libraries


コミットメタ情報

リビジョンa2f134a1bd0e112b026b4994f8518c013cfcfefb (tree)
日時2011-03-29 17:43:17
作者Corinna Vinschen <corinna@vins...>
コミッターCorinna Vinschen

ログメッセージ

Win2K and Vista userenv updates.

変更サマリ

差分

--- a/w32api/ChangeLog
+++ b/w32api/ChangeLog
@@ -1,3 +1,19 @@
1+2011-03-29 Corinna Vinschen <corinna@vinschen.de>
2+
3+ Win2K and Vista userenv updates.
4+
5+ * include/userenv.h [_WIN32_WINNT >= 0x0500] (DeleteProfile)
6+ (GetAllUsersProfileDirectory, GetDefaultUserProfileDirectory)
7+ (ExpandEnvironmentStringsForUser): Define function aliases.
8+ [_WIN32_WINNT >= 0x0500] (DeleteProfileA, DeleteProfileW)
9+ (GetAllUsersProfileDirectoryA, GetAllUsersProfileDirectoryW)
10+ (GetDefaultUserProfileDirectoryA, GetDefaultUserProfileDirectoryW
11+ (ExpandEnvironmentStringsForUserA, ExpandEnvironmentStringsForUserW)
12+ (GetProfileType): Declare function prototypes.
13+ [_WIN32_WINNT >= 0x0600] (CreateProfile): Declare function prototype.
14+ [_WIN32_WINNT >= 0x0500] (PT_TEMPORARY, PT_ROAMING, PT_MANDATORY):
15+ New manifest constants; define them.
16+
117 2011-03-25 Chris Sutcliffe <ir0nh34d@users.sf.net>
218
319 * Makefile.in: Increment CYGRELEASE to 2.
--- a/w32api/include/userenv.h
+++ b/w32api/include/userenv.h
@@ -7,8 +7,13 @@
77 #ifdef __cplusplus
88 extern "C" {
99 #endif
10-#define PI_NOUI (1)
11-#define PI_APPLYPOLICY (2)
10+#define PI_NOUI (1)
11+#define PI_APPLYPOLICY (2)
12+#if (_WIN32_WINNT >= 0x0500)
13+#define PT_TEMPORARY (1)
14+#define PT_ROAMING (2)
15+#define PT_MANDATORY (4)
16+#endif
1217 typedef struct _PROFILEINFOA {
1318 DWORD dwSize;
1419 DWORD dwFlags;
@@ -38,18 +43,44 @@ BOOL WINAPI GetUserProfileDirectoryA(HANDLE,LPSTR,LPDWORD);
3843 BOOL WINAPI GetUserProfileDirectoryW(HANDLE,LPWSTR,LPDWORD);
3944 BOOL WINAPI CreateEnvironmentBlock(LPVOID*,HANDLE,BOOL);
4045 BOOL WINAPI DestroyEnvironmentBlock(LPVOID);
46+#if (_WIN32_WINNT >= 0x0500)
47+BOOL WINAPI DeleteProfileA(LPCSTR,LPCSTR,LPCSTR);
48+BOOL WINAPI DeleteProfileW(LPCWSTR,LPCWSTR,LPCWSTR);
49+BOOL WINAPI GetProfileType(DWORD *);
50+BOOL WINAPI GetAllUsersProfileDirectoryA(LPSTR,LPDWORD);
51+BOOL WINAPI GetAllUsersProfileDirectoryW(LPWSTR,LPDWORD);
52+BOOL WINAPI GetDefaultUserProfileDirectoryA(LPSTR,LPDWORD);
53+BOOL WINAPI GetDefaultUserProfileDirectoryW(LPWSTR,LPDWORD);
54+BOOL WINAPI ExpandEnvironmentStringsForUserA(HANDLE,LPCSTR,LPSTR,DWORD);
55+BOOL WINAPI ExpandEnvironmentStringsForUserW(HANDLE,LPCWSTR,LPWSTR,DWORD);
56+#endif
57+#if (_WIN32_WINNT >= 0x0600)
58+HRESULT WINAPI CreateProfile(LPCWSTR,LPCWSTR,LPWSTR,DWORD);
59+#endif
4160 #ifdef UNICODE
4261 typedef PROFILEINFOW PROFILEINFO;
4362 typedef LPPROFILEINFOW LPPROFILEINFO;
4463 #define LoadUserProfile LoadUserProfileW
4564 #define GetProfilesDirectory GetProfilesDirectoryW
4665 #define GetUserProfileDirectory GetUserProfileDirectoryW
66+#if (_WIN32_WINNT >= 0x0500)
67+#define DeleteProfile DeleteProfileW
68+#define GetAllUsersProfileDirectory GetAllUsersProfileDirectoryW
69+#define GetDefaultUserProfileDirectory GetDefaultUserProfileDirectoryW
70+#define ExpandEnvironmentStringsForUser ExpandEnvironmentStringsForUserW
71+#endif
4772 #else
4873 typedef PROFILEINFOA PROFILEINFO;
4974 typedef LPPROFILEINFOA LPPROFILEINFO;
5075 #define LoadUserProfile LoadUserProfileA
5176 #define GetProfilesDirectory GetProfilesDirectoryA
5277 #define GetUserProfileDirectory GetUserProfileDirectoryA
78+#if (_WIN32_WINNT >= 0x0500)
79+#define DeleteProfile DeleteProfileA
80+#define GetAllUsersProfileDirectory GetAllUsersProfileDirectoryA
81+#define GetDefaultUserProfileDirectory GetDefaultUserProfileDirectoryA
82+#define ExpandEnvironmentStringsForUser ExpandEnvironmentStringsForUserA
83+#endif
5384 #endif
5485 #ifdef __cplusplus
5586 }