sysosh.inc 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. {
  2. Basic Windows stuff
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 2002-2005 by Free Pascal development team
  5. See the file COPYING.FPC, included in this distribution,
  6. for details about the copyright.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. **********************************************************************}
  11. { Platform specific information }
  12. type
  13. {$ifdef CPU64}
  14. THandle = QWord;
  15. ULONG_PTR = QWord;
  16. {$else CPU64}
  17. THandle = DWord;
  18. ULONG_PTR = DWord;
  19. {$endif CPU64}
  20. TThreadID = THandle;
  21. SIZE_T = ULONG_PTR;
  22. { the fields of this record are os dependent }
  23. { and they shouldn't be used in a program }
  24. { only the type TCriticalSection is important }
  25. PRTLCriticalSection = ^TRTLCriticalSection;
  26. TRTLCriticalSection = packed record
  27. DebugInfo : pointer;
  28. LockCount : longint;
  29. RecursionCount : longint;
  30. OwningThread : THandle;
  31. LockSemaphore : THandle;
  32. SpinCount : ULONG_PTR;
  33. end;
  34. const
  35. {$ifdef WINCE}
  36. KernelDLL = 'coredll';
  37. ApiSuffix = 'W';
  38. {$else WINCE}
  39. KernelDLL = 'kernel32';
  40. ApiSuffix = 'A';
  41. {$endif WINCE}