* include/userenv.h: Add functions and definitions added with Windows
2000 and Vista.
This commit is contained in:
parent
c9c50e7aa4
commit
700c641dfa
@ -1,3 +1,8 @@
|
|||||||
|
2011-03-29 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* include/userenv.h: Add functions and definitions added with Windows
|
||||||
|
2000 and Vista.
|
||||||
|
|
||||||
2011-03-25 Chris Sutcliffe <ir0nh34d@users.sf.net>
|
2011-03-25 Chris Sutcliffe <ir0nh34d@users.sf.net>
|
||||||
|
|
||||||
* Makefile.in: Increment CYGRELEASE to 2.
|
* Makefile.in: Increment CYGRELEASE to 2.
|
||||||
|
@ -9,6 +9,11 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
#define PI_NOUI (1)
|
#define PI_NOUI (1)
|
||||||
#define PI_APPLYPOLICY (2)
|
#define PI_APPLYPOLICY (2)
|
||||||
|
#if (_WIN32_WINNT >= 0x0500)
|
||||||
|
#define PT_TEMPORARY (1)
|
||||||
|
#define PT_ROAMING (2)
|
||||||
|
#define PT_MANDATORY (4)
|
||||||
|
#endif
|
||||||
typedef struct _PROFILEINFOA {
|
typedef struct _PROFILEINFOA {
|
||||||
DWORD dwSize;
|
DWORD dwSize;
|
||||||
DWORD dwFlags;
|
DWORD dwFlags;
|
||||||
@ -38,18 +43,44 @@ BOOL WINAPI GetUserProfileDirectoryA(HANDLE,LPSTR,LPDWORD);
|
|||||||
BOOL WINAPI GetUserProfileDirectoryW(HANDLE,LPWSTR,LPDWORD);
|
BOOL WINAPI GetUserProfileDirectoryW(HANDLE,LPWSTR,LPDWORD);
|
||||||
BOOL WINAPI CreateEnvironmentBlock(LPVOID*,HANDLE,BOOL);
|
BOOL WINAPI CreateEnvironmentBlock(LPVOID*,HANDLE,BOOL);
|
||||||
BOOL WINAPI DestroyEnvironmentBlock(LPVOID);
|
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
|
#ifdef UNICODE
|
||||||
typedef PROFILEINFOW PROFILEINFO;
|
typedef PROFILEINFOW PROFILEINFO;
|
||||||
typedef LPPROFILEINFOW LPPROFILEINFO;
|
typedef LPPROFILEINFOW LPPROFILEINFO;
|
||||||
#define LoadUserProfile LoadUserProfileW
|
#define LoadUserProfile LoadUserProfileW
|
||||||
#define GetProfilesDirectory GetProfilesDirectoryW
|
#define GetProfilesDirectory GetProfilesDirectoryW
|
||||||
#define GetUserProfileDirectory GetUserProfileDirectoryW
|
#define GetUserProfileDirectory GetUserProfileDirectoryW
|
||||||
|
#if (_WIN32_WINNT >= 0x0500)
|
||||||
|
#define DeleteProfile DeleteProfileW
|
||||||
|
#define GetAllUsersProfileDirectory GetAllUsersProfileDirectoryW
|
||||||
|
#define GetDefaultUserProfileDirectory GetDefaultUserProfileDirectoryW
|
||||||
|
#define ExpandEnvironmentStringsForUser ExpandEnvironmentStringsForUserW
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
typedef PROFILEINFOA PROFILEINFO;
|
typedef PROFILEINFOA PROFILEINFO;
|
||||||
typedef LPPROFILEINFOA LPPROFILEINFO;
|
typedef LPPROFILEINFOA LPPROFILEINFO;
|
||||||
#define LoadUserProfile LoadUserProfileA
|
#define LoadUserProfile LoadUserProfileA
|
||||||
#define GetProfilesDirectory GetProfilesDirectoryA
|
#define GetProfilesDirectory GetProfilesDirectoryA
|
||||||
#define GetUserProfileDirectory GetUserProfileDirectoryA
|
#define GetUserProfileDirectory GetUserProfileDirectoryA
|
||||||
|
#if (_WIN32_WINNT >= 0x0500)
|
||||||
|
#define DeleteProfile DeleteProfileA
|
||||||
|
#define GetAllUsersProfileDirectory GetAllUsersProfileDirectoryA
|
||||||
|
#define GetDefaultUserProfileDirectory GetDefaultUserProfileDirectoryA
|
||||||
|
#define ExpandEnvironmentStringsForUser ExpandEnvironmentStringsForUserA
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user