windows.pp 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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. function GetStringTypeExA(Locale:LCID; dwInfoType:DWORD; lpSrcStr:LPCSTR;cchSrc:longint;var CharType:WORD):WINBOOL; external 'kernel32' name 'GetStringTypeExA';
  60. {MvdV: Lazarus mwedit templates}
  61. function ExtTextOut(_para1:HDC; _para2:longint; _para3:longint; _para4:UINT; _para5:pRECT;
  62. _para6:lpcstr; _para7:UINT; _para8:pointer):WINBOOL; external 'gdi32' name 'ExtTextOutA';
  63. function SetScrollInfo(_para1:HWND; _para2:longint; const _para3:TSCROLLINFO; _para4:WINBOOL):longint; external 'user32' name 'SetScrollInfo';
  64. // function PtInRect(var lprc:TRECT; pt:TPOINT):WINBOOL; external 'user32' name 'PtInRect';
  65. end.
  66. {
  67. $Log$
  68. Revision 1.11 2000-05-17 11:00:29 marco
  69. * JCL alias
  70. Revision 1.10 2000/04/22 19:51:08 marco
  71. * Forgot to remove the tpoint stuff.
  72. Revision 1.9 2000/04/22 17:46:05 marco
  73. * some redef fixes (for lazarus mwedit component)
  74. Revision 1.8 2000/03/19 20:30:27 marco
  75. * Some more delphi compatible kernelfunc headers for JCL.
  76. Revision 1.7 2000/02/09 16:59:35 peter
  77. * truncated log
  78. Revision 1.6 2000/01/07 16:41:53 daniel
  79. * copyright 2000
  80. Revision 1.5 2000/01/07 16:32:35 daniel
  81. * copyright 2000 added
  82. Revision 1.4 1999/09/16 13:38:21 peter
  83. * windows unit include moved to wininc/
  84. }