windows.pp 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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) 1993,97 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. {$warning starting interface of windows unit }
  19. {$i base.pp}
  20. {$i errors.pp}
  21. {$i defines.pp}
  22. {$i messages.pp}
  23. {$i struct.pp}
  24. {$i redef.inc}
  25. {$i ascfun.pp}
  26. {$i unifun.pp}
  27. {$ifdef UNICODE}
  28. {$i unidef.pp}
  29. {$else not UNICODE}
  30. {$i ascdef.pp}
  31. {$endif UNICODE}
  32. {$i func.pp}
  33. implementation
  34. {$undef read_interface}
  35. {$define read_implementation}
  36. const External_library='kernel32';
  37. {$i base.pp}
  38. {$i errors.pp}
  39. {$i defines.pp}
  40. {$i messages.pp}
  41. {$i struct.pp}
  42. {$i ascfun.pp}
  43. {$i unifun.pp}
  44. {$ifdef UNICODE}
  45. {$i unidef.pp}
  46. {$else not UNICODE}
  47. {$i ascdef.pp}
  48. {$endif UNICODE}
  49. {$i func.pp}
  50. procedure InitializeCriticalSection(var CriticalSection : TRTLCriticalSection); external 'kernel32' name 'InitializeCriticalSection';
  51. procedure EnterCriticalSection(var CriticalSection : TRTLCriticalSection); external 'kernel32' name 'EnterCriticalSection';
  52. procedure LeaveCriticalSection(var CriticalSection : TRTLCriticalSection); external 'kernel32' name 'LeaveCriticalSection';
  53. procedure DeleteCriticalSection(var CriticalSection : TRTLCriticalSection); external 'kernel32' name 'DeleteCriticalSection';
  54. end.
  55. {
  56. $Log$
  57. Revision 1.2 1999-01-09 07:29:51 florian
  58. * some updates to compile API units for win32
  59. Revision 1.1 1998/08/31 11:54:02 pierre
  60. * compilable windows.pp file
  61. still to do :
  62. - findout problems
  63. - findout the correct DLL for each call !!
  64. }