home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 June / Chip_2002-06_cd1.bin / zkuste / cecko / install / devcpp4920.exe / include / userenv.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-09-14  |  1.6 KB  |  54 lines

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