windows.pp 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. {MvdV: JCL templates}
  54. function GetTimeZoneInformation(var TimeZoneInformation:TTimeZoneInformation):DWORD; external 'kernel32' name 'GetTimeZoneInformation';
  55. function FileTimeToLocalFileTime(const lpFileTime:TFILETIME; var LocalFileTime :TFILETIME):WINBOOL; external 'kernel32' name 'FileTimeToLocalFileTime';
  56. function FileTimeToSystemTime(const lpFileTime:TFILETIME; var lpSystemTime:TSYSTEMTIME):WINBOOL; external 'kernel32' name 'FileTimeToSystemTime';
  57. function DosDateTimeToFileTime(wFatDate:WORD; wFatTime:WORD; var lpFileTime:tFILETIME):WINBOOL; external 'kernel32' name 'DosDateTimeToFileTime';
  58. function SystemTimeToFileTime(const lSystemTime:tSYSTEMTIME;var FileTime:tFILETIME):WINBOOL;external 'kernel32' name 'SystemTimeToFileTime';
  59. end.
  60. {
  61. $Log$
  62. Revision 1.8 2000-03-19 20:30:27 marco
  63. * Some more delphi compatible kernelfunc headers for JCL.
  64. Revision 1.7 2000/02/09 16:59:35 peter
  65. * truncated log
  66. Revision 1.6 2000/01/07 16:41:53 daniel
  67. * copyright 2000
  68. Revision 1.5 2000/01/07 16:32:35 daniel
  69. * copyright 2000 added
  70. Revision 1.4 1999/09/16 13:38:21 peter
  71. * windows unit include moved to wininc/
  72. }