windows.pp 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. This unit contains the record definition for the Win32 API
  5. Copyright (c) 1999-2000 by Florian KLaempfl,
  6. member of the Free Pascal development team.
  7. See the file COPYING.FPC, included in this distribution,
  8. for details about the copyright.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  12. **********************************************************************}
  13. unit windows;
  14. {$define windows_include_files}
  15. interface
  16. {$define read_interface}
  17. {$undef read_implementation}
  18. {$message starting interface of windows unit }
  19. {$i base.inc}
  20. {$i errors.inc}
  21. {$i defines.inc}
  22. {$i messages.inc}
  23. {$i struct.inc}
  24. {$i redef.inc}
  25. {$i ascfun.inc}
  26. {$i unifun.inc}
  27. {$ifdef UNICODE}
  28. {$i unidef.inc}
  29. {$else not UNICODE}
  30. {$i ascdef.inc}
  31. {$endif UNICODE}
  32. {$i func.inc}
  33. implementation
  34. {$undef read_interface}
  35. {$define read_implementation}
  36. {$i base.inc}
  37. {$i errors.inc}
  38. {$i defines.inc}
  39. {$i messages.inc}
  40. {$i struct.inc}
  41. {$i ascfun.inc}
  42. {$i unifun.inc}
  43. {$ifdef UNICODE}
  44. {$i unidef.inc}
  45. {$else not UNICODE}
  46. {$i ascdef.inc}
  47. {$endif UNICODE}
  48. {$i func.inc}
  49. procedure InitializeCriticalSection(var CriticalSection : TRTLCriticalSection); external 'kernel32' name 'InitializeCriticalSection';
  50. procedure EnterCriticalSection(var CriticalSection : TRTLCriticalSection); external 'kernel32' name 'EnterCriticalSection';
  51. procedure LeaveCriticalSection(var CriticalSection : TRTLCriticalSection); external 'kernel32' name 'LeaveCriticalSection';
  52. procedure DeleteCriticalSection(var CriticalSection : TRTLCriticalSection); external 'kernel32' name 'DeleteCriticalSection';
  53. end.
  54. {
  55. $Log$
  56. Revision 1.7 2000-02-09 16:59:35 peter
  57. * truncated log
  58. Revision 1.6 2000/01/07 16:41:53 daniel
  59. * copyright 2000
  60. Revision 1.5 2000/01/07 16:32:35 daniel
  61. * copyright 2000 added
  62. Revision 1.4 1999/09/16 13:38:21 peter
  63. * windows unit include moved to wininc/
  64. }