jwaprofinfo.pas 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. {******************************************************************************}
  2. { }
  3. { Profile Info Structures API interface Unit for Object Pascal }
  4. { }
  5. { Portions created by Microsoft are Copyright (C) 1995-2001 Microsoft }
  6. { Corporation. All Rights Reserved. }
  7. { }
  8. { The original file is: profinfo.h, released June 2000. The original Pascal }
  9. { code is: ProfInfo.pas, released December 2000. The initial developer of the }
  10. { Pascal code is Marcel van Brakel (brakelm att chello dott nl). }
  11. { }
  12. { Portions created by Marcel van Brakel are Copyright (C) 1999-2001 }
  13. { Marcel van Brakel. All Rights Reserved. }
  14. { }
  15. { Obtained through: Joint Endeavour of Delphi Innovators (Project JEDI) }
  16. { }
  17. { You may retrieve the latest version of this file at the Project JEDI }
  18. { APILIB home page, located at http://jedi-apilib.sourceforge.net }
  19. { }
  20. { The contents of this file are used with permission, subject to the Mozilla }
  21. { Public License Version 1.1 (the "License"); you may not use this file except }
  22. { in compliance with the License. You may obtain a copy of the License at }
  23. { http://www.mozilla.org/MPL/MPL-1.1.html }
  24. { }
  25. { Software distributed under the License is distributed on an "AS IS" basis, }
  26. { WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for }
  27. { the specific language governing rights and limitations under the License. }
  28. { }
  29. { Alternatively, the contents of this file may be used under the terms of the }
  30. { GNU Lesser General Public License (the "LGPL License"), in which case the }
  31. { provisions of the LGPL License are applicable instead of those above. }
  32. { If you wish to allow use of your version of this file only under the terms }
  33. { of the LGPL License and not to allow others to use your version of this file }
  34. { under the MPL, indicate your decision by deleting the provisions above and }
  35. { replace them with the notice and other provisions required by the LGPL }
  36. { License. If you do not delete the provisions above, a recipient may use }
  37. { your version of this file under either the MPL or the LGPL License. }
  38. { }
  39. { For more information about the LGPL: http://www.gnu.org/copyleft/lesser.html }
  40. { }
  41. {******************************************************************************}
  42. // $Id: JwaProfInfo.pas,v 1.6 2005/09/03 13:12:10 marquardt Exp $
  43. unit JwaProfInfo;
  44. {$WEAKPACKAGEUNIT}
  45. {$HPPEMIT ''}
  46. {$HPPEMIT '#include "profinfo.h"'}
  47. {$HPPEMIT ''}
  48. {$I jediapilib.inc}
  49. interface
  50. uses
  51. JwaWindows;
  52. type
  53. LPPROFILEINFOA = ^PROFILEINFOA;
  54. {$EXTERNALSYM LPPROFILEINFOA}
  55. _PROFILEINFOA = record
  56. dwSize: DWORD; // Set to sizeof(PROFILEINFO) before calling
  57. dwFlags: DWORD; // See flags above
  58. lpUserName: LPSTR; // User name (required)
  59. lpProfilePath: LPSTR; // Roaming profile path (optional, can be NULL)
  60. lpDefaultPath: LPSTR; // Default user profile path (optional, can be NULL)
  61. lpServerName: LPSTR; // Validating domain controller name in netbios format (optional, can be NULL but group NT4 style policy won't be applied)
  62. lpPolicyPath: LPSTR; // Path to the NT4 style policy file (optional, can be NULL)
  63. hProfile: HANDLE; // Filled in by the function. Registry key handle open to the root.
  64. end;
  65. {$EXTERNALSYM _PROFILEINFOA}
  66. PROFILEINFOA = _PROFILEINFOA;
  67. {$EXTERNALSYM PROFILEINFOA}
  68. TProfileInfoA = PROFILEINFOA;
  69. PProfileInfoA = LPPROFILEINFOA;
  70. LPPROFILEINFOW = ^PROFILEINFOW;
  71. {$EXTERNALSYM LPPROFILEINFOW}
  72. _PROFILEINFOW = record
  73. dwSize: DWORD; // Set to sizeof(PROFILEINFO) before calling
  74. dwFlags: DWORD; // See flags above
  75. lpUserName: LPWSTR; // User name (required)
  76. lpProfilePath: LPWSTR; // Roaming profile path (optional, can be NULL)
  77. lpDefaultPath: LPWSTR; // Default user profile path (optional, can be NULL)
  78. lpServerName: LPWSTR; // Validating domain controller name in netbios format (optional, can be NULL but group NT4 style policy won't be applied)
  79. lpPolicyPath: LPWSTR; // Path to the NT4 style policy file (optional, can be NULL)
  80. hProfile: HANDLE; // Filled in by the function. Registry key handle open to the root.
  81. end;
  82. {$EXTERNALSYM _PROFILEINFOW}
  83. PROFILEINFOW = _PROFILEINFOW;
  84. {$EXTERNALSYM PROFILEINFOW}
  85. TProfileInfoW = PROFILEINFOW;
  86. PProfileInfoW = LPPROFILEINFOW;
  87. {$IFDEF UNICODE}
  88. PROFILEINFO = PROFILEINFOW;
  89. {$EXTERNALSYM PROFILEINFO}
  90. LPPROFILEINFO = LPPROFILEINFOW;
  91. {$EXTERNALSYM LPPROFILEINFO}
  92. TProfileInfo = TProfileInfoW;
  93. PProfileInfo = PProfileInfoW;
  94. {$ELSE}
  95. PROFILEINFO = PROFILEINFOA;
  96. {$EXTERNALSYM PROFILEINFO}
  97. LPPROFILEINFO = LPPROFILEINFOA;
  98. {$EXTERNALSYM LPPROFILEINFO}
  99. TProfileInfo = TProfileInfoA;
  100. PProfileInfo = PProfileInfoA;
  101. {$ENDIF UNICODE}
  102. implementation
  103. end.