Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
2.7 KiB

  1. //=============================================================================
  2. // profinfo.h - Header file for profile info structure.
  3. //
  4. // Copyright (c) Microsoft Corporation 2000
  5. // All rights reserved
  6. //
  7. //=============================================================================
  8. #ifndef _INC_PROFINFO
  9. #define _INC_PROFINFO
  10. #ifdef __midl
  11. #define FAR
  12. #define MIDL_STRING [string, unique]
  13. #else
  14. #define MIDL_STRING
  15. #endif // __midl
  16. typedef struct _PROFILEINFOA {
  17. DWORD dwSize; // Set to sizeof(PROFILEINFO) before calling
  18. DWORD dwFlags; // See PI_ flags defined in userenv.h
  19. MIDL_STRING LPSTR lpUserName; // User name (required)
  20. MIDL_STRING LPSTR lpProfilePath; // Roaming profile path (optional, can be NULL)
  21. MIDL_STRING LPSTR lpDefaultPath; // Default user profile path (optional, can be NULL)
  22. MIDL_STRING LPSTR lpServerName; // Validating domain controller name in netbios format (optional, can be NULL but group NT4 style policy won't be applied)
  23. MIDL_STRING LPSTR lpPolicyPath; // Path to the NT4 style policy file (optional, can be NULL)
  24. #ifdef __midl
  25. ULONG_PTR hProfile; // Filled in by the function. Registry key handle open to the root.
  26. #else
  27. HANDLE hProfile; // Filled in by the function. Registry key handle open to the root.
  28. #endif
  29. } PROFILEINFOA, FAR * LPPROFILEINFOA;
  30. typedef struct _PROFILEINFOW {
  31. DWORD dwSize; // Set to sizeof(PROFILEINFO) before calling
  32. DWORD dwFlags; // See PI_ flags defined in userenv.h
  33. MIDL_STRING LPWSTR lpUserName; // User name (required)
  34. MIDL_STRING LPWSTR lpProfilePath; // Roaming profile path (optional, can be NULL)
  35. MIDL_STRING LPWSTR lpDefaultPath; // Default user profile path (optional, can be NULL)
  36. MIDL_STRING LPWSTR lpServerName; // Validating domain controller name in netbios format (optional, can be NULL but group NT4 style policy won't be applied)
  37. MIDL_STRING LPWSTR lpPolicyPath; // Path to the NT4 style policy file (optional, can be NULL)
  38. #ifdef __midl
  39. ULONG_PTR hProfile; // Filled in by the function. Registry key handle open to the root.
  40. #else
  41. HANDLE hProfile; // Filled in by the function. Registry key handle open to the root.
  42. #endif
  43. } PROFILEINFOW, FAR * LPPROFILEINFOW;
  44. #ifdef UNICODE
  45. typedef PROFILEINFOW PROFILEINFO;
  46. typedef LPPROFILEINFOW LPPROFILEINFO;
  47. #else
  48. typedef PROFILEINFOA PROFILEINFO;
  49. typedef LPPROFILEINFOA LPPROFILEINFO;
  50. #endif // UNICODE
  51. #endif // _INC_PROFINFO