* include/userenv.h: New header file.

* lib/userenv.def: New stub for userenv.dll.
This commit is contained in:
Corinna Vinschen 2000-08-08 20:00:35 +00:00
parent befe0fb3e1
commit 5678e1954a
3 changed files with 69 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Tue Aug 8 21:29:00 2000 Corinna Vinschen <corinna@vinschen.de>
* include/userenv.h: New header file.
* lib/userenv.def: New stub for userenv.dll.
Tue Aug 8 10:25:14 2000 Christopher Faylor <cgf@cygnus.com>
* include/winuser.h: Correct PCWPSTRUCT typo.

View File

@ -0,0 +1,53 @@
#ifndef _USERENV_H
#define _USERENV_H
#ifdef __cplusplus
extern "C" {
#endif
#define PI_NOUI (1)
#define PI_APPLYPOLICY (2)
typedef struct _PROFILEINFOA {
DWORD dwSize;
DWORD dwFlags;
LPSTR lpUserName;
LPSTR lpProfilePath;
LPSTR lpDefaultPath;
LPSTR lpServerName;
LPSTR lpPolicyPath;
HANDLE hProfile;
} PROFILEINFOA, *LPPROFILEINFOA;
typedef struct _PROFILEINFOW {
DWORD dwSize;
DWORD dwFlags;
LPWSTR lpUserName;
LPWSTR lpProfilePath;
LPWSTR lpDefaultPath;
LPWSTR lpServerName;
LPWSTR lpPolicyPath;
HANDLE hProfile;
} PROFILEINFOW, *LPPROFILEINFOW;
BOOL WINAPI LoadUserProfileA(HANDLE,LPPROFILEINFOA);
BOOL WINAPI LoadUserProfileW(HANDLE,LPPROFILEINFOW);
BOOL WINAPI UnloadUserProfile(HANDLE,HANDLE);
BOOL WINAPI GetProfilesDirectoryA(LPSTR,LPDWORD);
BOOL WINAPI GetProfilesDirectoryW(LPWSTR,LPDWORD);
BOOL WINAPI GetUserProfileDirectoryA(HANDLE,LPSTR,LPDWORD);
BOOL WINAPI GetUserProfileDirectoryW(HANDLE,LPWSTR,LPDWORD);
BOOL WINAPI CreateEnvironmentBlock(LPVOID*,HANDLE,BOOL);
BOOL WINAPI DestroyEnvironmentBlock(LPVOID);
#ifdef UNICODE
typedef PROFILEINFOW PROFILEINFO;
typedef LPPROFILEINFOW LPPROFILEINFO;
#define LoadUserProfile LoadUserProfileW
#define GetProfilesDirectory GetProfilesDirectoryW
#define GetUserProfileDirectory GetUserProfileDirectoryW
#else
typedef PROFILEINFOA PROFILEINFO;
typedef LPPROFILEINFOA LPPROFILEINFO;
#define LoadUserProfile LoadUserProfileA
#define GetProfilesDirectory GetProfilesDirectoryA
#define GetUserProfileDirectory GetUserProfileDirectoryA
#endif
#ifdef __cplusplus
}
#endif
#endif /* _USERENV_H */

View File

@ -0,0 +1,11 @@
LIBRARY USERENV.dll
EXPORTS
LoadUserProfileA@8
LoadUserProfileW@8
UnloadUserProfile@8
GetProfilesDirectoryA@8
GetProfilesDirectoryW@8
GetUserProfileDirectoryA@12
GetUserProfileDirectoryW@12
CreateEnvironmentBlock@12
DestroyEnvironmentBlock@4