diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2011-03-29 08:43:17 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2011-03-29 08:43:17 +0000 |
commit | 700c641dfa72b292a231810ab35d93849f4c8fe1 (patch) | |
tree | 9ab091bc9ef072b825996d753a0e6600f97539f8 /winsup/w32api/include/userenv.h | |
parent | c9c50e7aa4694cd7cb94600c89b28fdea751c9a2 (diff) | |
download | cygnal-700c641dfa72b292a231810ab35d93849f4c8fe1.tar.gz cygnal-700c641dfa72b292a231810ab35d93849f4c8fe1.tar.bz2 cygnal-700c641dfa72b292a231810ab35d93849f4c8fe1.zip |
* include/userenv.h: Add functions and definitions added with Windows
2000 and Vista.
Diffstat (limited to 'winsup/w32api/include/userenv.h')
-rw-r--r-- | winsup/w32api/include/userenv.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/winsup/w32api/include/userenv.h b/winsup/w32api/include/userenv.h index fad9f813b..c84ccf886 100644 --- a/winsup/w32api/include/userenv.h +++ b/winsup/w32api/include/userenv.h @@ -9,6 +9,11 @@ extern "C" { #endif #define PI_NOUI (1) #define PI_APPLYPOLICY (2) +#if (_WIN32_WINNT >= 0x0500) +#define PT_TEMPORARY (1) +#define PT_ROAMING (2) +#define PT_MANDATORY (4) +#endif typedef struct _PROFILEINFOA { DWORD dwSize; DWORD dwFlags; @@ -38,18 +43,44 @@ BOOL WINAPI GetUserProfileDirectoryA(HANDLE,LPSTR,LPDWORD); BOOL WINAPI GetUserProfileDirectoryW(HANDLE,LPWSTR,LPDWORD); BOOL WINAPI CreateEnvironmentBlock(LPVOID*,HANDLE,BOOL); BOOL WINAPI DestroyEnvironmentBlock(LPVOID); +#if (_WIN32_WINNT >= 0x0500) +BOOL WINAPI DeleteProfileA(LPCSTR,LPCSTR,LPCSTR); +BOOL WINAPI DeleteProfileW(LPCWSTR,LPCWSTR,LPCWSTR); +BOOL WINAPI GetProfileType(DWORD *); +BOOL WINAPI GetAllUsersProfileDirectoryA(LPSTR,LPDWORD); +BOOL WINAPI GetAllUsersProfileDirectoryW(LPWSTR,LPDWORD); +BOOL WINAPI GetDefaultUserProfileDirectoryA(LPSTR,LPDWORD); +BOOL WINAPI GetDefaultUserProfileDirectoryW(LPWSTR,LPDWORD); +BOOL WINAPI ExpandEnvironmentStringsForUserA(HANDLE,LPCSTR,LPSTR,DWORD); +BOOL WINAPI ExpandEnvironmentStringsForUserW(HANDLE,LPCWSTR,LPWSTR,DWORD); +#endif +#if (_WIN32_WINNT >= 0x0600) +HRESULT WINAPI CreateProfile(LPCWSTR,LPCWSTR,LPWSTR,DWORD); +#endif #ifdef UNICODE typedef PROFILEINFOW PROFILEINFO; typedef LPPROFILEINFOW LPPROFILEINFO; #define LoadUserProfile LoadUserProfileW #define GetProfilesDirectory GetProfilesDirectoryW #define GetUserProfileDirectory GetUserProfileDirectoryW +#if (_WIN32_WINNT >= 0x0500) +#define DeleteProfile DeleteProfileW +#define GetAllUsersProfileDirectory GetAllUsersProfileDirectoryW +#define GetDefaultUserProfileDirectory GetDefaultUserProfileDirectoryW +#define ExpandEnvironmentStringsForUser ExpandEnvironmentStringsForUserW +#endif #else typedef PROFILEINFOA PROFILEINFO; typedef LPPROFILEINFOA LPPROFILEINFO; #define LoadUserProfile LoadUserProfileA #define GetProfilesDirectory GetProfilesDirectoryA #define GetUserProfileDirectory GetUserProfileDirectoryA +#if (_WIN32_WINNT >= 0x0500) +#define DeleteProfile DeleteProfileA +#define GetAllUsersProfileDirectory GetAllUsersProfileDirectoryA +#define GetDefaultUserProfileDirectory GetDefaultUserProfileDirectoryA +#define ExpandEnvironmentStringsForUser ExpandEnvironmentStringsForUserA +#endif #endif #ifdef __cplusplus } |