source: vendor/w32api/current/include/userenv.h

Last change on this file was 2720, checked in by bird, 19 years ago

w32api v3.6

File size: 1.6 KB
Line 
1#ifndef _USERENV_H
2#define _USERENV_H
3#if __GNUC__ >=3
4#pragma GCC system_header
5#endif
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10#define PI_NOUI (1)
11#define PI_APPLYPOLICY (2)
12typedef struct _PROFILEINFOA {
13 DWORD dwSize;
14 DWORD dwFlags;
15 LPSTR lpUserName;
16 LPSTR lpProfilePath;
17 LPSTR lpDefaultPath;
18 LPSTR lpServerName;
19 LPSTR lpPolicyPath;
20 HANDLE hProfile;
21} PROFILEINFOA, *LPPROFILEINFOA;
22typedef struct _PROFILEINFOW {
23 DWORD dwSize;
24 DWORD dwFlags;
25 LPWSTR lpUserName;
26 LPWSTR lpProfilePath;
27 LPWSTR lpDefaultPath;
28 LPWSTR lpServerName;
29 LPWSTR lpPolicyPath;
30 HANDLE hProfile;
31} PROFILEINFOW, *LPPROFILEINFOW;
32BOOL WINAPI LoadUserProfileA(HANDLE,LPPROFILEINFOA);
33BOOL WINAPI LoadUserProfileW(HANDLE,LPPROFILEINFOW);
34BOOL WINAPI UnloadUserProfile(HANDLE,HANDLE);
35BOOL WINAPI GetProfilesDirectoryA(LPSTR,LPDWORD);
36BOOL WINAPI GetProfilesDirectoryW(LPWSTR,LPDWORD);
37BOOL WINAPI GetUserProfileDirectoryA(HANDLE,LPSTR,LPDWORD);
38BOOL WINAPI GetUserProfileDirectoryW(HANDLE,LPWSTR,LPDWORD);
39BOOL WINAPI CreateEnvironmentBlock(LPVOID*,HANDLE,BOOL);
40BOOL WINAPI DestroyEnvironmentBlock(LPVOID);
41#ifdef UNICODE
42typedef PROFILEINFOW PROFILEINFO;
43typedef LPPROFILEINFOW LPPROFILEINFO;
44#define LoadUserProfile LoadUserProfileW
45#define GetProfilesDirectory GetProfilesDirectoryW
46#define GetUserProfileDirectory GetUserProfileDirectoryW
47#else
48typedef PROFILEINFOA PROFILEINFO;
49typedef LPPROFILEINFOA LPPROFILEINFO;
50#define LoadUserProfile LoadUserProfileA
51#define GetProfilesDirectory GetProfilesDirectoryA
52#define GetUserProfileDirectory GetUserProfileDirectoryA
53#endif
54#ifdef __cplusplus
55}
56#endif
57#endif /* _USERENV_H */
Note: See TracBrowser for help on using the repository browser.